Skip to content

Commit

Permalink
Print setId and voters when invalid commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro committed Nov 9, 2024
1 parent 27b3136 commit 90472f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/client/consensus/grandpa/justification.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,12 @@ func (j *GrandpaJustification[Hash, N]) verifyWithVoterSet(
ancestryChain,
)
if err != nil {
fmt.Printf("setId: %d voters %v \n", setID, voters)
return fmt.Errorf("%w: invalid commit in grandpa justification: %s", errBadJustification, err)
}

if !commitValidationResult.Valid() {
fmt.Printf("setId: %d voters %v \n", setID, voters)
return fmt.Errorf("%w: invalid commit in grandpa justification", errBadJustification)
}

Expand Down

0 comments on commit 90472f2

Please sign in to comment.