light weight block event

This commit is contained in:
Ethan Buchman
2016-03-16 19:45:46 -04:00
parent 27eede190a
commit ae07c0171d
2 changed files with 6 additions and 2 deletions

View File

@@ -1205,7 +1205,7 @@ func (cs *ConsensusState) finalizeCommit(height int) {
// Fire off event for new block.
// TODO: Handle app failure. See #177
cs.evsw.FireEvent(types.EventStringNewBlock(), types.EventDataNewBlock{block})
cs.evsw.FireEvent(types.EventStringNewBlock(), types.EventDataNewBlock{&types.BlockHeader{block.Header}})
// Create a copy of the state for staging
stateCopy := cs.state.Copy()