chore(pruner): remove deletion limit per block, make it per run (#9446)

This commit is contained in:
Alexey Shekhirin
2024-07-11 21:16:30 +01:00
committed by GitHub
parent 95bde32cdf
commit 805673c656
11 changed files with 35 additions and 79 deletions

View File

@ -30,7 +30,7 @@ impl PruneCommand {
info!(target: "reth::cli", ?prune_tip, ?prune_config, "Pruning data from database...");
// Run the pruner according to the configuration, and don't enforce any limits on it
let mut pruner = PrunerBuilder::new(prune_config)
.delete_limit_per_block(usize::MAX)
.delete_limit(usize::MAX)
.build_with_provider_factory(provider_factory);
pruner.run(prune_tip)?;