Browse Source

consensus: note about duplicate evidence

pull/592/head
Ethan Buchman 7 years ago
parent
commit
39299e5cc1
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      consensus/state.go

+ 1
- 0
consensus/state.go 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) 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) cs.Evidence = append(cs.Evidence, voteErr.DuplicateVoteEvidence)
return err return err
} else { } else {


Loading…
Cancel
Save