Wip VM. Created contracts

This commit is contained in:
obscuren
2014-01-03 00:43:49 +01:00
parent 9df4c74511
commit 7cd41ac45a
6 changed files with 80 additions and 18 deletions

View File

@@ -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