Skip to content

Commit

Permalink
chore(batcher): add height as input
Browse files Browse the repository at this point in the history
  • Loading branch information
ArniStarkware committed Nov 28, 2024
1 parent e1a8da8 commit 7de50f1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use papyrus_protobuf::consensus::{
TransactionBatch,
Vote,
};
use starknet_api::block::{BlockHash, BlockHashAndNumber, BlockNumber};
use starknet_api::block::{BlockHash, BlockHashAndNumber, BlockInfo, BlockNumber};
use starknet_api::executable_transaction::Transaction;
use starknet_batcher_types::batcher_types::{
DecisionReachedInput,
Expand Down Expand Up @@ -116,7 +116,7 @@ impl ConsensusContext for SequencerConsensusContext {
hash: BlockHash::default(),
}),
// TODO: Fill block info.
block_info: Default::default(),
block_info: BlockInfo { block_number: proposal_init.height, ..Default::default() },
};
self.maybe_start_height(proposal_init.height).await;
// TODO: Should we be returning an error?
Expand Down Expand Up @@ -175,7 +175,7 @@ impl ConsensusContext for SequencerConsensusContext {
hash: BlockHash::default(),
}),
// TODO: Fill block info.
block_info: Default::default(),
block_info: BlockInfo { block_number: height, ..Default::default() },
};
self.maybe_start_height(height).await;
batcher.validate_block(input).await.expect("Failed to initiate proposal validation");
Expand Down

0 comments on commit 7de50f1

Please sign in to comment.