mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 02:42:38 +00:00
Allow user to set an epoch margin for pruning
This commit is contained in:
@@ -421,6 +421,14 @@ pub fn get_config<E: EthSpec>(
|
||||
client_config.store.epochs_per_blob_prune = epochs_per_blob_prune;
|
||||
}
|
||||
|
||||
if let Some(blob_prune_margin_epochs) =
|
||||
clap_utils::parse_optional(cli_args, "blob-prune-margin-epochs")?
|
||||
{
|
||||
if blob_prune_margin_epochs > 0 {
|
||||
client_config.store.blob_prune_margin_epochs = Some(blob_prune_margin_epochs);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Zero-ports
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user