From acb1c09a496e1f70cadd2d6394b4b821a383fc95 Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Tue, 21 May 2024 20:07:34 +0200 Subject: [PATCH] fix(op): disable execution stage (#8317) --- bin/reth/src/commands/import.rs | 4 ++-- bin/reth/src/commands/import_op.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/reth/src/commands/import.rs b/bin/reth/src/commands/import.rs index 7d6b12fd8f089..235ada848549c 100644 --- a/bin/reth/src/commands/import.rs +++ b/bin/reth/src/commands/import.rs @@ -219,7 +219,7 @@ pub async fn build_import_pipeline( consensus: &Arc, file_client: Arc, static_file_producer: StaticFileProducer, - should_exec: bool, + disable_exec: bool, ) -> eyre::Result<(Pipeline, impl Stream)> where DB: Database + Clone + Unpin + 'static, @@ -273,7 +273,7 @@ where PruneModes::default(), ) .builder() - .disable_all_if(&StageId::STATE_REQUIRED, || should_exec), + .disable_all_if(&StageId::STATE_REQUIRED, || disable_exec), ) .build(provider_factory, static_file_producer); diff --git a/bin/reth/src/commands/import_op.rs b/bin/reth/src/commands/import_op.rs index 5576a1077bb03..b1ae8e8cb366c 100644 --- a/bin/reth/src/commands/import_op.rs +++ b/bin/reth/src/commands/import_op.rs @@ -143,7 +143,7 @@ impl ImportOpCommand { provider_factory.static_file_provider(), PruneModes::default(), ), - false, + true, ) .await?;