Skip to content

Commit

Permalink
chore(starknet_batcher): set use_kzg_da flag in build block input
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware committed Dec 2, 2024
1 parent 3d7428d commit 17c0fe1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
},
};
Expand Down Expand Up @@ -361,6 +362,7 @@ impl SequencerConsensusContext {
block_timestamp: BlockTimestamp(
now.timestamp().try_into().expect("Failed to convert timestamp"),
),
use_kzg_da: true,
..Default::default()
},
};
Expand Down
2 changes: 1 addition & 1 deletion crates/starknet_api/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 17c0fe1

Please sign in to comment.