refactor: remove PruneModes from batch executor (#14025)

This commit is contained in:
Arsenii Kulikov
2025-01-29 15:50:37 +04:00
committed by GitHub
parent 2652ec8af5
commit 5fcefcea8c
17 changed files with 61 additions and 180 deletions

View File

@ -14,7 +14,6 @@ use reth_provider::{
providers::{ProviderNodeTypes, StaticFileProvider},
DatabaseProviderFactory, ProviderFactory,
};
use reth_prune::PruneModes;
use reth_stages::{
stages::{
AccountHashingStage, ExecutionStage, MerkleStage, StorageHashingStage,
@ -104,7 +103,6 @@ fn unwind_and_copy<N: ProviderNodeTypes>(
max_duration: None,
},
MERKLE_STAGE_DEFAULT_CLEAN_THRESHOLD,
PruneModes::all(),
ExExManagerHandle::empty(),
);

View File

@ -275,7 +275,6 @@ impl<C: ChainSpecParser<ChainSpec: EthChainSpec + Hardforks + EthereumHardforks>
max_duration: None,
},
config.stages.merkle.clean_threshold,
prune_modes,
ExExManagerHandle::empty(),
)),
None,

View File

@ -144,7 +144,6 @@ impl<C: ChainSpecParser<ChainSpec: EthChainSpec + EthereumHardforks>> Command<C>
max_duration: None,
},
stage_conf.execution_external_clean_threshold(),
prune_modes.clone(),
ExExManagerHandle::empty(),
)),
)