|
|
@ -1518,9 +1518,11 @@ func (cs *ConsensusState) tryAddVote(vote *types.Vote, peerID p2p.ID) (bool, err |
|
|
|
cs.evpool.AddEvidence(voteErr.DuplicateVoteEvidence) |
|
|
|
return added, err |
|
|
|
} else { |
|
|
|
// Probably an invalid signature / Bad peer.
|
|
|
|
// Seems this can also err sometimes with "Unexpected step" - perhaps not from a bad peer ?
|
|
|
|
cs.Logger.Error("Error attempting to add vote", "err", err) |
|
|
|
// Either
|
|
|
|
// 1) bad peer OR
|
|
|
|
// 2) not a bad peer? this can also err sometimes with "Unexpected step" OR
|
|
|
|
// 3) tmkms use with multiple validators connecting to a single tmkms instance (https://github.com/tendermint/tendermint/issues/3839).
|
|
|
|
cs.Logger.Info("Error attempting to add vote", "err", err) |
|
|
|
return added, ErrAddingVote |
|
|
|
} |
|
|
|
} |
|
|
|