Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/sync/sync_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ const (
dataSync syncType = "dataSync"
)

// TODO: when we add pruning we can remove this
const ninetyNineYears = 99 * 365 * 24 * time.Hour

// SyncService is the P2P Sync Service for blocks and headers.
//
// Uses the go-header library for handling all P2P logic.
Expand Down Expand Up @@ -388,6 +391,7 @@ func newSyncer[H header.Header[H]](
) (*goheadersync.Syncer[H], error) {
opts = append(opts,
goheadersync.WithMetrics(),
goheadersync.WithPruningWindow(ninetyNineYears),
)
return goheadersync.NewSyncer(ex, store, sub, opts...)
}
Expand Down
Loading