fixup! Allow user to set an epoch margin for pruning

This commit is contained in:
Emilia Hane
2023-01-24 11:24:42 +01:00
parent a2eda76291
commit 8f137df02e
6 changed files with 13 additions and 25 deletions

View File

@@ -130,9 +130,7 @@ fn parse_client_config<E: EthSpec>(
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);
}
client_config.store.blob_prune_margin_epochs = blob_prune_margin_epochs;
}
Ok(client_config)