aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <obscuren@obscura.com>2014-01-05 08:54:15 +0800
committerobscuren <obscuren@obscura.com>2014-01-05 08:54:15 +0800
commit53a30740eea7d3b3010337166e53a62ebff508f3 (patch)
tree2e8ff0036a98e7b7bb6495bb6fe00fdbc009e85d
parent2c90c0df65132bf65abbcf4e4caecb89b671b93f (diff)
downloadgo-tangerine-53a30740eea7d3b3010337166e53a62ebff508f3.tar.gz
go-tangerine-53a30740eea7d3b3010337166e53a62ebff508f3.tar.zst
go-tangerine-53a30740eea7d3b3010337166e53a62ebff508f3.zip
Contract checking method
-rw-r--r--block_manager.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/block_manager.go b/block_manager.go
index 6c1a0fe58..0f7a64cf8 100644
--- a/block_manager.go
+++ b/block_manager.go
@@ -34,7 +34,7 @@ func (bm *BlockManager) ProcessBlock(block *Block) error {
// Process each transaction/contract
for _, tx := range block.transactions {
// If there's no recipient, it's a contract
- if tx.recipient == "" {
+ if tx.IsContract() {
go bm.ProcessContract(tx, block, lockChan)
} else {
// "finish" tx which isn't a contract