diff --git a/crates/cli/commands/src/stage/unwind.rs b/crates/cli/commands/src/stage/unwind.rs index e5ff560559..7171a45bb2 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) }