Skip to content

Commit

Permalink
docs: document trusted header in Verify
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed May 27, 2024
1 parent 9979590 commit a9164e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import (
const DefaultHeightThreshold uint64 = 80000 // ~ 14 days of 15 second headers

// Verify verifies untrusted Header against trusted following general Header checks and
// custom user-specific checks defined in Header.Verify
// custom user-specific checks defined in Header.Verify.
//
// If trusted header is zero, no error is returned.
// If heightThreshold is zero, uses DefaultHeightThreshold.
// Always returns VerifyError.
func Verify[H Header[H]](trstd, untrstd H, heightThreshold uint64) error {
Expand Down

0 comments on commit a9164e3

Please sign in to comment.