Browse Source

use error.Is to check for nondeterminstic vote error type (#6237)

pull/6247/head
Callum Waters 4 years ago
committed by GitHub
parent
commit
bf8cce83db
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      consensus/state.go

+ 1
- 1
consensus/state.go View File

@ -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


Loading…
Cancel
Save