Skip to content

Commit

Permalink
add a fix to investigate the cause of SEGSEGV on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
torao committed Sep 2, 2021
1 parent a1ef7de commit dc1734f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions types/voter_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,12 @@ func (voters *VoterSet) VerifyCommitLightTrusting(chainID string, commit *Commit
func verifySignatureOrCollectBlsPubKeysAndGetVotingPower(
idx int, commitSig CommitSig, val *Validator, voteSignBytes []byte,
blsPubKeys *[]bls.PubKey, messages *[][]byte) (int64, int64, error) {
if val == nil {
panic("validator is nil")
}
if val.PubKey == nil {
panic("the public key for validator is nil")
}
verifiedVotingPower := int64(0)
unverifiedVotingPower := int64(0)
if commitSig.Signature != nil {
Expand Down

0 comments on commit dc1734f

Please sign in to comment.