feat(prune, stages): prune pipeline stage (#9419)

This commit is contained in:
Alexey Shekhirin
2024-07-11 20:18:56 +01:00
committed by GitHub
parent c31d69683d
commit b040b86a54
19 changed files with 416 additions and 79 deletions

View File

@ -30,8 +30,8 @@ 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)
.prune_delete_limit(usize::MAX)
.build(provider_factory);
.delete_limit_per_block(usize::MAX)
.build_with_provider_factory(provider_factory);
pruner.run(prune_tip)?;
info!(target: "reth::cli", "Pruned data from database");