mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 07:17:56 -05:00
chore: enforce max tx gas limit on estimate and accesslit (#18612)
This commit is contained in:
@@ -398,9 +398,6 @@ pub trait EthCall: EstimateCall + Call + LoadPendingBlock + LoadBlock + FullEthA
|
||||
// <https://github.com/ethereum/go-ethereum/blob/8990c92aea01ca07801597b00c0d83d4e2d9b811/internal/ethapi/api.go#L1476-L1476>
|
||||
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);
|
||||
|
||||
// Disabled because eth_createAccessList is sometimes used with non-eoa senders
|
||||
evm_env.cfg_env.disable_eip3607 = true;
|
||||
|
||||
|
||||
@@ -53,9 +53,6 @@ pub trait EstimateCall: Call {
|
||||
// <https://github.com/ethereum/go-ethereum/blob/ee8e83fa5f6cb261dad2ed0a7bbcde4930c41e6c/internal/ethapi/api.go#L985>
|
||||
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);
|
||||
|
||||
// set nonce to None so that the correct nonce is chosen by the EVM
|
||||
request.as_mut().take_nonce();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user