We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb96e98 commit 88e6f69Copy full SHA for 88e6f69
sync/options.go
@@ -120,3 +120,10 @@ func WithSyncFromHeight(height uint64) Option {
120
p.SyncFromHeight = height
121
}
122
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