Merge remote-tracking branch 'origin/consensus_tests' into develop

This commit is contained in:
Jae Kwon
2015-10-11 18:20:19 -07:00
3 changed files with 1183 additions and 4 deletions

View File

@ -1316,10 +1316,8 @@ func (cs *ConsensusState) saveBlock(block *types.Block, blockParts *types.PartSe
// Fire off event
if cs.evsw != nil && cs.evc != nil {
go func(block *types.Block) {
cs.evsw.FireEvent(types.EventStringNewBlock(), types.EventDataNewBlock{block})
cs.evc.Flush()
}(block)
cs.evsw.FireEvent(types.EventStringNewBlock(), types.EventDataNewBlock{block})
go cs.evc.Flush()
}
}