diff --git a/consensus/state.go b/consensus/state.go index c5b50d49e..4adb6218d 100644 --- a/consensus/state.go +++ b/consensus/state.go @@ -1958,7 +1958,7 @@ func (cs *State) tryAddVote(vote *types.Vote, peerID p2p.ID) (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