diff options
author | Maran <maran.hidskes@gmail.com> | 2014-05-20 20:41:35 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-05-20 20:41:35 +0800 |
commit | f5d441473499428964b75924845cf0c7bcaaa5ca (patch) | |
tree | 0d601b2b82439be86c75abc040bf77428a05643c /ethchain | |
parent | b4e156e1d723fe53eff238a634f6e83cb9d80492 (diff) | |
download | go-tangerine-f5d441473499428964b75924845cf0c7bcaaa5ca.tar.gz go-tangerine-f5d441473499428964b75924845cf0c7bcaaa5ca.tar.zst go-tangerine-f5d441473499428964b75924845cf0c7bcaaa5ca.zip |
Fix notification when processing block that didn't have this client as origin
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/state_manager.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go index 098263e8a..c7c6857d8 100644 --- a/ethchain/state_manager.go +++ b/ethchain/state_manager.go @@ -180,6 +180,7 @@ func (sm *StateManager) ProcessBlock(state *State, block *Block, dontReact bool) // Add the block to the chain sm.bc.Add(block) + sm.notifyChanges(state) ethutil.Config.Log.Infof("[STATE] Added block #%d (%x)\n", block.BlockInfo().Number, block.Hash()) if dontReact == false { @@ -188,8 +189,6 @@ func (sm *StateManager) ProcessBlock(state *State, block *Block, dontReact bool) state.manifest.Reset() } - sm.notifyChanges(state) - sm.Ethereum.Broadcast(ethwire.MsgBlockTy, []interface{}{block.Value().Val}) sm.Ethereum.TxPool().RemoveInvalid(state) |