From 0ef1d1896674c0e90e8e0945348bbfb4622a1911 Mon Sep 17 00:00:00 2001 From: dimazhornyk Date: Mon, 11 Nov 2024 11:08:35 +0700 Subject: [PATCH] fix: use_dummy_inclusion_data condition --- core/node/da_dispatcher/src/da_dispatcher.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/node/da_dispatcher/src/da_dispatcher.rs b/core/node/da_dispatcher/src/da_dispatcher.rs index f8e6f6b31723..2cdde9951be9 100644 --- a/core/node/da_dispatcher/src/da_dispatcher.rs +++ b/core/node/da_dispatcher/src/da_dispatcher.rs @@ -137,6 +137,8 @@ impl DataAvailabilityDispatcher { }; let inclusion_data = if self.config.use_dummy_inclusion_data() { + Some(InclusionData { data: vec![] }) + } else { self.client .get_inclusion_data(blob_info.blob_id.as_str()) .await @@ -146,10 +148,6 @@ impl DataAvailabilityDispatcher { blob_info.blob_id, blob_info.l1_batch_number ) })? - } else { - // if the inclusion verification is disabled, we don't need to wait for the inclusion - // data before committing the batch, so simply return an empty vector - Some(InclusionData { data: vec![] }) }; let Some(inclusion_data) = inclusion_data else {