From 39299e5cc107e331e1e88e6ad2f9a7b13987e8af Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Mon, 28 Aug 2017 21:08:26 -0400 Subject: [PATCH] consensus: note about duplicate evidence --- consensus/state.go | 1 + 1 file changed, 1 insertion(+) diff --git a/consensus/state.go b/consensus/state.go index 2323dfa04..2f9f07ec3 100644 --- a/consensus/state.go +++ b/consensus/state.go @@ -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 {