Use ResetFor... callback instead of EventSwitch for mempool new blocks

This commit is contained in:
Jae Kwon
2015-09-29 09:04:34 -07:00
committed by Ethan Buchman
parent cccb722ba8
commit ceed000c58
4 changed files with 28 additions and 14 deletions

View File

@ -1312,7 +1312,7 @@ func (cs *ConsensusState) saveBlock(block *types.Block, blockParts *types.PartSe
cs.stagedState.Save()
// Update mempool.
cs.mempoolReactor.Mempool.ResetForBlockAndState(block, cs.stagedState)
cs.mempoolReactor.ResetForBlockAndState(block, cs.stagedState)
// Fire off event
if cs.evsw != nil && cs.evc != nil {