mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-16 20:39:10 +00:00
Enable skipping blob pruning at each epoch
This commit is contained in:
@@ -555,10 +555,19 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
|
||||
Arg::with_name("prune-blobs")
|
||||
.long("prune-blobs")
|
||||
.help("Prune blobs from Lighthouse's database when they are older than the data \
|
||||
data availability boundary relative to the current head.")
|
||||
data availability boundary relative to the current epoch.")
|
||||
.takes_value(true)
|
||||
.default_value("true")
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("epochs-per-blob-prune")
|
||||
.long("epochs-per-blob-prune")
|
||||
.help("The epoch interval with which to prune blobs from Lighthouse's \
|
||||
database when they are older than the data data availability \
|
||||
boundary relative to the current epoch.")
|
||||
.takes_value(true)
|
||||
.default_value("1")
|
||||
)
|
||||
|
||||
/*
|
||||
* Misc.
|
||||
|
||||
@@ -415,6 +415,12 @@ pub fn get_config<E: EthSpec>(
|
||||
client_config.store.prune_blobs = prune_blobs;
|
||||
}
|
||||
|
||||
if let Some(epochs_per_blob_prune) =
|
||||
clap_utils::parse_optional(cli_args, "epochs-per-blob-prune")?
|
||||
{
|
||||
client_config.store.epochs_per_blob_prune = epochs_per_blob_prune;
|
||||
}
|
||||
|
||||
/*
|
||||
* Zero-ports
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user