diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-29 21:20:42 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-29 21:20:42 +0800 |
commit | 9e2f071d26d5c4ed343d2a91e48fec4e7751b99d (patch) | |
tree | fdfde82ceb0c6736b82c08c7002055ee95cfef67 /block_pool.go | |
parent | fb4113dab4df8480c77bdcb707fa6b5408755b79 (diff) | |
download | dexon-9e2f071d26d5c4ed343d2a91e48fec4e7751b99d.tar.gz dexon-9e2f071d26d5c4ed343d2a91e48fec4e7751b99d.tar.zst dexon-9e2f071d26d5c4ed343d2a91e48fec4e7751b99d.zip |
Removed events from the state manager
Diffstat (limited to 'block_pool.go')
-rw-r--r-- | block_pool.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/block_pool.go b/block_pool.go index f65d9d576..334db9c1b 100644 --- a/block_pool.go +++ b/block_pool.go @@ -309,9 +309,13 @@ out: } } + // TODO figure out whether we were catching up + // If caught up and just a new block has been propagated: + // sm.eth.EventMux().Post(NewBlockEvent{block}) + // otherwise process and don't emit anything var err error for i, block := range blocks { - err = self.eth.StateManager().Process(block, false) + err = self.eth.StateManager().Process(block) if err != nil { poollogger.Infoln(err) poollogger.Debugf("Block #%v failed (%x...)\n", block.Number, block.Hash()[0:4]) |