fix: disable block gas limit (#18583)

This commit is contained in:
Matthias Seitz
2025-09-22 12:07:03 +02:00
committed by GitHub
parent 79c71b8692
commit 39d5563ce8

View File

@@ -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 <https://github.com/paradigmxyz/reth/issues/1959>