consensus: note about duplicate evidence
This commit is contained in:
parent
eeab0efa56
commit
39299e5cc1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue