Skip to content

Commit

Permalink
fix: only check that base fee is not zero (paradigmxyz#8808)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Seitz <[email protected]>
  • Loading branch information
Rjected and mattsse authored Jun 13, 2024
1 parent de46a46 commit d4bd1c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/rpc/rpc-types-compat/src/engine/payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Ethereum's Engine
use reth_primitives::{
constants::{EMPTY_OMMER_ROOT_HASH, MAXIMUM_EXTRA_DATA_SIZE, MIN_PROTOCOL_BASE_FEE_U256},
constants::{EMPTY_OMMER_ROOT_HASH, MAXIMUM_EXTRA_DATA_SIZE},
proofs::{self},
Block, Header, Request, SealedBlock, TransactionSigned, UintTryTo, Withdrawals, B256, U256,
};
Expand All @@ -18,7 +18,7 @@ pub fn try_payload_v1_to_block(payload: ExecutionPayloadV1) -> Result<Block, Pay
return Err(PayloadError::ExtraData(payload.extra_data))
}

if payload.base_fee_per_gas < MIN_PROTOCOL_BASE_FEE_U256 {
if payload.base_fee_per_gas.is_zero() {
return Err(PayloadError::BaseFee(payload.base_fee_per_gas))
}

Expand Down

0 comments on commit d4bd1c8

Please sign in to comment.