Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro committed Oct 16, 2024
1 parent c249195 commit 8bd2322
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/grandpa/warp_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ func (w *WarpSyncProof) lastProofBlockNumber() uint64 {
return w.Proofs[len(w.Proofs)-1].Justification.Justification.Commit.TargetNumber + 1
}

// The warp proof is verified by traversing the warp proof fragments,
// then we verify the justifications against the authorities based on the
// genesis authorities and the scheduled changes.
// If we are able to verify all the fragments, then the warp proof is valid.
func (w *WarpSyncProof) verify(
setId grandpa.SetID,
authorities primitives.AuthorityList,
Expand Down

0 comments on commit 8bd2322

Please sign in to comment.