Browse Source

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

(cherry picked from commit bf8cce83db)

Co-authored-by: Callum Waters <cmwaters19@gmail.com>
pull/6274/head
mergify[bot] 4 years ago
committed by GitHub
parent
commit
d004a584f8
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

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


Loading…
Cancel
Save