Skip to content

Commit

Permalink
fix: extra data can equal to MAX_EXTRA_DATA_BYTES (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyxushuai authored Oct 19, 2023
1 parent ddb349b commit 4db793c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/preparation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl HeaderPrepStrategy for EthHeaderPrepStrategy {
}
// Validate extra data
let extra_data_bytes = block_builder.input.extra_data.len();
if extra_data_bytes >= MAX_EXTRA_DATA_BYTES {
if extra_data_bytes > MAX_EXTRA_DATA_BYTES {
bail!(
"Invalid extra data: expected <= {}, got {}",
MAX_EXTRA_DATA_BYTES,
Expand Down

0 comments on commit 4db793c

Please sign in to comment.