diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-14 22:29:34 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-14 22:29:34 +0800 |
commit | 98a631b5563b8a87c3fc83f14256087251926a61 (patch) | |
tree | 2dbada4e80dd3e70a99fe692c7454c7de9c5a99e /ethchain/state_manager.go | |
parent | ff2cf2dacd3470e7c2800e2f3644cfc05dfa6c4e (diff) | |
download | dexon-98a631b5563b8a87c3fc83f14256087251926a61.tar.gz dexon-98a631b5563b8a87c3fc83f14256087251926a61.tar.zst dexon-98a631b5563b8a87c3fc83f14256087251926a61.zip |
Remove any invalid transactions after block processing
Diffstat (limited to 'ethchain/state_manager.go')
-rw-r--r-- | ethchain/state_manager.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go index f830f2022..57d56469b 100644 --- a/ethchain/state_manager.go +++ b/ethchain/state_manager.go @@ -199,6 +199,8 @@ func (sm *StateManager) ProcessBlock(block *Block, dontReact bool) error { } sm.Ethereum.Broadcast(ethwire.MsgBlockTy, []interface{}{block.Value().Val}) + + sm.Ethereum.TxPool().RemoveInvalid(sm.procState) } else { fmt.Println("total diff failed") } |