Browse Source

comment out ErrAddingVote because it breaks byzantine_test

pull/1244/head
Anton Kaliaev 7 years ago
parent
commit
63cb69cb96
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      consensus/state.go

+ 3
- 2
consensus/state.go View File

@ -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


Loading…
Cancel
Save