From 63cb69cb96c4251c07df592120dfea1da630d77b Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Mon, 5 Mar 2018 15:26:36 +0400 Subject: [PATCH] comment out ErrAddingVote because it breaks byzantine_test --- consensus/state.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/consensus/state.go b/consensus/state.go index 958574dd0..342ea9830 100644 --- a/consensus/state.go +++ b/consensus/state.go @@ -595,8 +595,9 @@ func (cs *ConsensusState) handleMsg(mi msgInfo) { // if the vote gives us a 2/3-any or 2/3-one, we transition err := cs.tryAddVote(msg.Vote, peerID) if err == ErrAddingVote { - // punish peer - cs.eventBus.Publish(peerErrorEvent, types.TMEventData{peerError{err, peerID}}) + // TODO: punish peer + // breaks byzantine_test + // cs.eventBus.Publish(peerErrorEvent, types.TMEventData{peerError{err, peerID}}) } // NOTE: the vote is broadcast to peers by the reactor listening