Skip to content

Commit

Permalink
fix: panic verifying evidence due to missing pubkey (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek authored Sep 14, 2023
1 parent 0551f7a commit 8d75f16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/evidence/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ func VerifyDuplicateVote(e *types.DuplicateVoteEvidence, chainID string, valSet
}
proTxHash := val.ProTxHash
pubKey := val.PubKey
if pubKey == nil {
return fmt.Errorf("we don't have a public key of validator %X at height %d", proTxHash, e.Height())
}

// H/R/S must be the same
if e.VoteA.Height != e.VoteB.Height ||
Expand Down

0 comments on commit 8d75f16

Please sign in to comment.