Skip to content

Commit

Permalink
Merge pull request #192 from hyunsooda/valset-crash-prevented
Browse files Browse the repository at this point in the history
consensus: Added error check to valset
  • Loading branch information
hyunsooda authored Dec 31, 2024
2 parents 977e134 + ae8db89 commit 7672928
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions consensus/istanbul/backend/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@ func (sb *backend) verifySigner(chain consensus.ChainReader, header *types.Heade

// Retrieve the snapshot needed to verify this header and cache it
valSet, err := sb.GetValidatorSet(number)
if err != nil {
return err
}

// resolve the authorization key and check against signers
signer, err := ecrecover(header)
Expand Down

0 comments on commit 7672928

Please sign in to comment.