mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(op): disable execution stage (#8317)
This commit is contained in:
@ -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);
|
||||
|
||||
|
||||
@ -143,7 +143,7 @@ impl ImportOpCommand {
|
||||
provider_factory.static_file_provider(),
|
||||
PruneModes::default(),
|
||||
),
|
||||
false,
|
||||
true,
|
||||
)
|
||||
.await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user