Skip to content

Commit

Permalink
WIP. Add command line option.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-ry4n committed Oct 3, 2024
1 parent 7f9c7d1 commit 34dd6bc
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,16 @@ public class BeaconNodeDataOptions extends ValidatorClientDataOptions {
arity = "0..1")
private int blobsPruningLimit = StorageConfiguration.DEFAULT_BLOBS_PRUNING_LIMIT;

@CommandLine.Option(
names = {"--Xdata-storage-archive-path"},
hidden = true,
paramLabel = "<STRING>",
description = "Path to write pruned blobs",
fallbackValue = "true",
showDefaultValue = Visibility.ALWAYS,
arity = "0..1")
private String blobsArchivePath = null;

@Option(
names = {"--Xdata-storage-state-rebuild-timeout-seconds"},
hidden = true,
Expand Down Expand Up @@ -212,6 +222,7 @@ public void configure(final TekuConfiguration.Builder builder) {
.stateRebuildTimeoutSeconds(stateRebuildTimeoutSeconds)
.blobsPruningInterval(Duration.ofSeconds(blobsPruningIntervalSeconds))
.blobsPruningLimit(blobsPruningLimit)
.blobsArchivePath(blobsArchivePath)
.retainedSlots(dataStorageRetainedSlots)
.statePruningInterval(Duration.ofSeconds(statePruningIntervalSeconds))
.statePruningLimit(statePruningLimit));
Expand Down

0 comments on commit 34dd6bc

Please sign in to comment.