Skip to content

Commit 88e6f69

Browse files
committed
add option
1 parent eb96e98 commit 88e6f69

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sync/options.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,10 @@ func WithSyncFromHeight(height uint64) Option {
120120
p.SyncFromHeight = height
121121
}
122122
}
123+
124+
// WithPruningWindow sets the duration within which headers will be retained before being pruned.
125+
func WithPruningWindow(window time.Duration) Option {
126+
return func(p *Parameters) {
127+
p.PruningWindow = window
128+
}
129+
}

0 commit comments

Comments
 (0)