Skip to content

Commit

Permalink
fix: update Head signature for syncer
Browse files Browse the repository at this point in the history
  • Loading branch information
derrandz committed Apr 28, 2023
1 parent 21594db commit 2da10fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync/sync_head.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
// Known subjective head is considered network head if it is recent enough(now-timestamp<=blocktime)
// Otherwise, head is requested from a trusted peer and
// set as the new subjective head, assuming that trusted peer is always fully synced.
func (s *Syncer[H]) Head(ctx context.Context) (H, error) {
func (s *Syncer[H]) Head(ctx context.Context, _ ...header.Option) (H, error) {
sbjHead, err := s.subjectiveHead(ctx)
if err != nil {
return sbjHead, err
Expand Down

0 comments on commit 2da10fd

Please sign in to comment.