Skip to content

Commit 39d5563

Browse files
authored
fix: disable block gas limit (paradigmxyz#18583)
1 parent 79c71b8 commit 39d5563

File tree

1 file changed

+6
-2
lines changed
  • crates/rpc/rpc-eth-api/src/helpers

1 file changed

+6
-2
lines changed

crates/rpc/rpc-eth-api/src/helpers/call.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,10 +766,14 @@ pub trait Call:
766766
warn!(target: "rpc::eth::call", ?request, ?global_gas_cap, "Capping gas limit to global gas cap");
767767
request.as_mut().set_gas_limit(global_gas_cap);
768768
}
769+
} else {
770+
// cap request's gas limit to call gas limit
771+
request.as_mut().set_gas_limit(self.call_gas_limit());
769772
}
770773

771-
// apply configured gas cap
772-
evm_env.block_env.gas_limit = self.call_gas_limit();
774+
// Disable block gas limit check to allow executing transactions with higher gas limit (call
775+
// gas limit): https://github.com/paradigmxyz/reth/issues/18577
776+
evm_env.cfg_env.disable_block_gas_limit = true;
773777

774778
// Disabled because eth_call is sometimes used with eoa senders
775779
// See <https://github.com/paradigmxyz/reth/issues/1959>

0 commit comments

Comments
 (0)