Skip to content

Commit 6b0784f

Browse files
Update crates/edr_eth/src/block.rs
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>
1 parent 0c9c3e6 commit 6b0784f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/edr_eth/src/block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ pub fn calculate_next_base_fee(parent: &Header) -> U256 {
362362

363363
let delta = parent_base_fee * U256::from(gas_used_delta)
364364
/ U256::from(parent_gas_target)
365-
/ base_fee_max_change_denominator;
365+
/ U256::from(parent_gas_target.max(1))
366366

367367
parent_base_fee + delta.max(U256::from(1))
368368
}

0 commit comments

Comments
 (0)