chore(prune): increase reth prune DELETE_LIMIT to 20M (#21762)

This commit is contained in:
Dan Cline
2026-02-03 17:47:50 +00:00
committed by GitHub
parent e706d76aa9
commit 6d02565c5e

View File

@@ -80,7 +80,9 @@ impl<C: ChainSpecParser<ChainSpec: EthChainSpec + EthereumHardforks>> PruneComma
});
// Use batched pruning with a limit to bound memory, running in a loop until complete.
const DELETE_LIMIT: usize = 200_000;
//
// A limit of 20_000_000 results in a max memory usage of ~5G.
const DELETE_LIMIT: usize = 20_000_000;
let mut pruner = PrunerBuilder::new(config)
.delete_limit(DELETE_LIMIT)
.build_with_provider_factory(provider_factory);