Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(starknet_batcher): add height as input #2339

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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,
@@ -140,7 +140,7 @@ impl ConsensusContext for SequencerConsensusContext {
hash: BlockHash::default(),
}),
// TODO(Dan, Matan): Fill block info.
block_info: Default::default(),
block_info: BlockInfo { block_number: proposal_init.height, ..Default::default() },
};
// TODO: Should we be returning an error?
// I think this implies defining an error type in this crate and moving the trait definition
@@ -323,7 +323,7 @@ impl SequencerConsensusContext {
hash: BlockHash::default(),
}),
// TODO(Dan, Matan): Fill block info.
block_info: Default::default(),
block_info: BlockInfo { block_number: height, ..Default::default() },
};
batcher.validate_block(input).await.expect("Failed to initiate proposal validation");

Loading