Skip to content

Commit

Permalink
fix(op): disable execution stage (paradigmxyz#8317)
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane authored and mw2000 committed Jun 5, 2024
1 parent 4a0ada1 commit acb1c09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/reth/src/commands/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion bin/reth/src/commands/import_op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl ImportOpCommand {
provider_factory.static_file_provider(),
PruneModes::default(),
),
false,
true,
)
.await?;

Expand Down

0 comments on commit acb1c09

Please sign in to comment.