mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 22:05:18 +00:00
use error.Is to check for nondeterminstic vote error type (#6237)
This commit is contained in:
@@ -1966,7 +1966,7 @@ func (cs *State) tryAddVote(vote *types.Vote, peerID p2p.NodeID) (bool, error) {
|
||||
)
|
||||
|
||||
return added, err
|
||||
} else if err == types.ErrVoteNonDeterministicSignature {
|
||||
} else if errors.Is(err, types.ErrVoteNonDeterministicSignature) {
|
||||
cs.Logger.Debug("vote has non-deterministic signature", "err", err)
|
||||
} else {
|
||||
// Either
|
||||
|
||||
Reference in New Issue
Block a user