consensus: msg saving and replay

This commit is contained in:
Ethan Buchman
2015-12-22 15:23:22 -05:00
parent 892174997b
commit 6aaa5fb0bf
8 changed files with 213 additions and 39 deletions

View File

@ -239,8 +239,8 @@ func (conR *ConsensusReactor) registerEventCallbacks() {
conR.broadcastNewRoundStep(rs)
})
conR.evsw.AddListenerForEvent("conR", types.EventStringVote(), func(data events.EventData) {
edv := data.(*types.EventDataVote)
conR.evsw.AddListenerForEvent("conR", types.EventStringVote(), func(data types.EventData) {
edv := data.(types.EventDataVote)
conR.broadcastHasVoteMessage(edv.Vote, edv.Index)
})
}