aboutsummaryrefslogtreecommitdiffstats
path: root/block_manager.go
diff options
context:
space:
mode:
authorobscuren <obscuren@obscura.com>2014-01-03 07:43:49 +0800
committerobscuren <obscuren@obscura.com>2014-01-03 07:43:49 +0800
commit7cd41ac45aed7ee22ef02f8abedf83a2914c4807 (patch)
tree7a4c3daee8a04dc9604098407f019bb5db9ea3d4 /block_manager.go
parent9df4c745119b3ed10a7ad17887e8dd9cac249af7 (diff)
downloadgo-tangerine-7cd41ac45aed7ee22ef02f8abedf83a2914c4807.tar
go-tangerine-7cd41ac45aed7ee22ef02f8abedf83a2914c4807.tar.gz
go-tangerine-7cd41ac45aed7ee22ef02f8abedf83a2914c4807.tar.bz2
go-tangerine-7cd41ac45aed7ee22ef02f8abedf83a2914c4807.tar.lz
go-tangerine-7cd41ac45aed7ee22ef02f8abedf83a2914c4807.tar.xz
go-tangerine-7cd41ac45aed7ee22ef02f8abedf83a2914c4807.tar.zst
go-tangerine-7cd41ac45aed7ee22ef02f8abedf83a2914c4807.zip
Wip VM. Created contracts
Diffstat (limited to 'block_manager.go')
-rw-r--r--block_manager.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/block_manager.go b/block_manager.go
index 0ef5d1108..f3aa29ba4 100644
--- a/block_manager.go
+++ b/block_manager.go
@@ -45,13 +45,11 @@ func (bm *BlockManager) ProcessBlock(block *Block) error {
}
func (bm *BlockManager) ProcessTransaction(tx *Transaction, block *Block, lockChan chan bool) {
- if tx.recipient == "\x00" {
- bm.vm.RunTransaction(tx, block, func(opType OpType) bool {
- // TODO calculate fees
+ bm.vm.RunTransaction(tx, block, func(opType OpType) bool {
+ // TODO calculate fees
- return true // Continue
- })
- }
+ return true // Continue
+ })
// Broadcast we're done
lockChan <- true