From c44b2b4ae7dff90a99927c151fc59688cb2d20ef Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 19 Sep 2025 16:56:18 +0200 Subject: [PATCH 1/2] fix: disable block gas limit --- crates/rpc/rpc-eth-api/src/helpers/call.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/rpc/rpc-eth-api/src/helpers/call.rs b/crates/rpc/rpc-eth-api/src/helpers/call.rs index 5841cc422a2..008e761817c 100644 --- a/crates/rpc/rpc-eth-api/src/helpers/call.rs +++ b/crates/rpc/rpc-eth-api/src/helpers/call.rs @@ -766,10 +766,14 @@ pub trait Call: warn!(target: "rpc::eth::call", ?request, ?global_gas_cap, "Capping gas limit to global gas cap"); request.as_mut().set_gas_limit(global_gas_cap); } + } else { + // cap request's gas limit to call gas limit + request.as_mut().set_gas_limit(self.call_gas_limit()); } - // apply configured gas cap - evm_env.block_env.gas_limit = self.call_gas_limit(); + // Disable block gas limit check to allow executing transactions with higher gas limit (call gas limit): + // https://github.com/paradigmxyz/reth/issues/18577 + evm_env.cfg_env.disable_block_gas_limit = true; // Disabled because eth_call is sometimes used with eoa senders // See @@ -780,6 +784,7 @@ pub trait Call: // evm_env.cfg_env.disable_base_fee = true; + // Disable EIP-7825 transaction gas limit to support larger transactions evm_env.cfg_env.tx_gas_limit_cap = Some(u64::MAX); From 2ac8b7fbd8fd69967904fce430329326d0574c28 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 19 Sep 2025 16:58:54 +0200 Subject: [PATCH 2/2] fmt --- crates/rpc/rpc-eth-api/src/helpers/call.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/rpc/rpc-eth-api/src/helpers/call.rs b/crates/rpc/rpc-eth-api/src/helpers/call.rs index 008e761817c..4cc85459238 100644 --- a/crates/rpc/rpc-eth-api/src/helpers/call.rs +++ b/crates/rpc/rpc-eth-api/src/helpers/call.rs @@ -771,8 +771,8 @@ pub trait Call: request.as_mut().set_gas_limit(self.call_gas_limit()); } - // Disable block gas limit check to allow executing transactions with higher gas limit (call gas limit): - // https://github.com/paradigmxyz/reth/issues/18577 + // Disable block gas limit check to allow executing transactions with higher gas limit (call + // gas limit): https://github.com/paradigmxyz/reth/issues/18577 evm_env.cfg_env.disable_block_gas_limit = true; // Disabled because eth_call is sometimes used with eoa senders @@ -784,7 +784,6 @@ pub trait Call: // evm_env.cfg_env.disable_base_fee = true; - // Disable EIP-7825 transaction gas limit to support larger transactions evm_env.cfg_env.tx_gas_limit_cap = Some(u64::MAX);