Skip to content

Commit

Permalink
block_size is allowed to be equal to max_block_size (#1579)
Browse files Browse the repository at this point in the history
Closes #1464

Co-authored-by: tbro <[email protected]>
  • Loading branch information
tbro and tbro authored Jun 12, 2024
1 parent 4120052 commit 7336345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sequencer/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ pub fn validate_proposal(

// validate block size and fee
let block_size = VidSchemeType::get_payload_byte_len(vid_common) as u64;
if block_size >= *expected_chain_config.max_block_size {
if block_size > *expected_chain_config.max_block_size {
return Err(ProposalValidationError::MaxBlockSizeExceeded {
max_block_size: expected_chain_config.max_block_size,
block_size: block_size.into(),
Expand Down

0 comments on commit 7336345

Please sign in to comment.