Commit 53a30740 authored by obscuren's avatar obscuren

Contract checking method

parent 2c90c0df
...@@ -34,7 +34,7 @@ func (bm *BlockManager) ProcessBlock(block *Block) error { ...@@ -34,7 +34,7 @@ func (bm *BlockManager) ProcessBlock(block *Block) error {
// Process each transaction/contract // Process each transaction/contract
for _, tx := range block.transactions { for _, tx := range block.transactions {
// If there's no recipient, it's a contract // If there's no recipient, it's a contract
if tx.recipient == "" { if tx.IsContract() {
go bm.ProcessContract(tx, block, lockChan) go bm.ProcessContract(tx, block, lockChan)
} else { } else {
// "finish" tx which isn't a contract // "finish" tx which isn't a contract
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment