From df00877b708749b5f8fa53ac178f40d330dd04bd Mon Sep 17 00:00:00 2001 From: joshieDo <93316087+joshieDo@users.noreply.github.com> Date: Mon, 13 Jan 2025 21:54:53 +0000 Subject: [PATCH] fix(cmd): initialize `StaticFileProducer` with config `PruneModes` unwind command (#13791) --- crates/cli/commands/src/stage/unwind.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/cli/commands/src/stage/unwind.rs b/crates/cli/commands/src/stage/unwind.rs index e5ff56055..7171a45bb 100644 --- a/crates/cli/commands/src/stage/unwind.rs +++ b/crates/cli/commands/src/stage/unwind.rs @@ -17,7 +17,6 @@ use reth_provider::{ providers::ProviderNodeTypes, BlockExecutionWriter, BlockNumReader, ChainStateBlockReader, ChainStateBlockWriter, ProviderFactory, StaticFileProviderFactory, StorageLocation, }; -use reth_prune::PruneModes; use reth_stages::{ sets::{DefaultStages, OfflineStages}, stages::ExecutionStage, @@ -120,7 +119,7 @@ impl> Command let builder = if self.offline { Pipeline::::builder().add_stages( - OfflineStages::new(executor, config.stages, PruneModes::default()) + OfflineStages::new(executor, config.stages, prune_modes.clone()) .builder() .disable(reth_stages::StageId::SenderRecovery), ) @@ -145,7 +144,7 @@ impl> Command max_duration: None, }, stage_conf.execution_external_clean_threshold(), - prune_modes, + prune_modes.clone(), ExExManagerHandle::empty(), )), ) @@ -153,7 +152,7 @@ impl> Command let pipeline = builder.build( provider_factory.clone(), - StaticFileProducer::new(provider_factory, PruneModes::default()), + StaticFileProducer::new(provider_factory, prune_modes), ); Ok(pipeline) }