From 38e59dc34896308980a4efc4aa44b2f4c2c87bec Mon Sep 17 00:00:00 2001 From: Arni Hod Date: Thu, 28 Nov 2024 15:04:28 +0200 Subject: [PATCH] chore(starknet_batcher): set use_kzg_da flag in build block input --- .../src/sequencer_consensus_context.rs | 2 ++ crates/starknet_api/src/block.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs b/crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs index d3204e84fc..078b76f542 100644 --- a/crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs +++ b/crates/sequencing/papyrus_consensus_orchestrator/src/sequencer_consensus_context.rs @@ -170,6 +170,7 @@ impl ConsensusContext for SequencerConsensusContext { block_timestamp: BlockTimestamp( now.timestamp().try_into().expect("Failed to convert timestamp"), ), + use_kzg_da: true, ..Default::default() }, }; @@ -361,6 +362,7 @@ impl SequencerConsensusContext { block_timestamp: BlockTimestamp( now.timestamp().try_into().expect("Failed to convert timestamp"), ), + use_kzg_da: true, ..Default::default() }, }; diff --git a/crates/starknet_api/src/block.rs b/crates/starknet_api/src/block.rs index 74f72a462d..b2e31e8bde 100644 --- a/crates/starknet_api/src/block.rs +++ b/crates/starknet_api/src/block.rs @@ -486,7 +486,7 @@ impl GasPrices { )] pub struct BlockTimestamp(pub u64); -#[derive(Clone, Debug, Deserialize, Default, Serialize)] +#[derive(Clone, Debug, Default, Deserialize, Serialize)] pub struct BlockInfo { pub block_number: BlockNumber, pub block_timestamp: BlockTimestamp,