fix(op): disable execution stage (#8317)

This commit is contained in:
Emilia Hane
2024-05-21 20:07:34 +02:00
committed by GitHub
parent affafa8cfc
commit 50f1f1c033
2 changed files with 3 additions and 3 deletions

View File

@ -219,7 +219,7 @@ pub async fn build_import_pipeline<DB, C>(
consensus: &Arc<C>,
file_client: Arc<FileClient>,
static_file_producer: StaticFileProducer<DB>,
should_exec: bool,
disable_exec: bool,
) -> eyre::Result<(Pipeline<DB>, impl Stream<Item = NodeEvent>)>
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);

View File

@ -143,7 +143,7 @@ impl ImportOpCommand {
provider_factory.static_file_provider(),
PruneModes::default(),
),
false,
true,
)
.await?;