consensus: note about duplicate evidence

This commit is contained in:
Ethan Buchman 2017-08-28 21:08:26 -04:00
parent eeab0efa56
commit 39299e5cc1
1 changed files with 1 additions and 0 deletions

View File

@ -1340,6 +1340,7 @@ func (cs *ConsensusState) tryAddVote(vote *types.Vote, peerKey string) error {
}
cs.Logger.Error("Found conflicting vote. Recording evidence in the RoundState", "height", vote.Height, "round", vote.Round, "type", vote.Type, "valAddr", vote.ValidatorAddress, "valIndex", vote.ValidatorIndex)
// TODO: ensure we haven't seen this evidence already !
cs.Evidence = append(cs.Evidence, voteErr.DuplicateVoteEvidence)
return err
} else {