This commit is contained in:
Ethan Buchman
2017-06-23 22:12:45 -04:00
parent 2750343de5
commit 468982ffe4
4 changed files with 15 additions and 18 deletions

View File

@@ -648,7 +648,7 @@ func (cs *ConsensusState) handleMsg(mi msgInfo, rs RoundState) {
case *VoteMessage:
// attempt to add the vote and dupeout the validator if its a duplicate signature
// if the vote gives us a 2/3-any or 2/3-one, we transition
_ = cs.tryAddVote(msg.Vote, peerKey)
err := cs.tryAddVote(msg.Vote, peerKey)
if err == ErrAddingVote {
// TODO: punish peer
}