increase default gas limit from 30M to 36M (#2941)
This commit is contained in:
parent
0ce5234231
commit
0b704040e3
|
@ -49,7 +49,7 @@ const
|
||||||
GENESIS_EXTRA_DATA* = ""
|
GENESIS_EXTRA_DATA* = ""
|
||||||
GAS_LIMIT_MINIMUM* = 5000
|
GAS_LIMIT_MINIMUM* = 5000
|
||||||
GAS_LIMIT_MAXIMUM* = int64.high.GasInt # Maximum the gas limit (2^63-1).
|
GAS_LIMIT_MAXIMUM* = int64.high.GasInt # Maximum the gas limit (2^63-1).
|
||||||
DEFAULT_GAS_LIMIT* = 30_000_000
|
DEFAULT_GAS_LIMIT* = 36_000_000
|
||||||
|
|
||||||
EMPTY_SHA3* = hash32"c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
|
EMPTY_SHA3* = hash32"c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ import
|
||||||
# Private functions
|
# Private functions
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
proc eip1559BaseFee(header: Header; fork: EVMFork): UInt256 =
|
func eip1559BaseFee(header: Header; fork: EVMFork): UInt256 =
|
||||||
## Actually, `baseFee` should be 0 for pre-London headers already. But this
|
## Actually, `baseFee` should be 0 for pre-London headers already. But this
|
||||||
## function just plays safe. In particular, the `test_general_state_json.nim`
|
## function just plays safe. In particular, the `test_general_state_json.nim`
|
||||||
## module modifies this block header `baseFee` field unconditionally :(.
|
## module modifies this block header `baseFee` field unconditionally :(.
|
||||||
|
@ -138,7 +138,7 @@ proc processBeaconBlockRoot*(vmState: BaseVMState, beaconRoot: Hash32):
|
||||||
call = CallParams(
|
call = CallParams(
|
||||||
vmState : vmState,
|
vmState : vmState,
|
||||||
sender : SYSTEM_ADDRESS,
|
sender : SYSTEM_ADDRESS,
|
||||||
gasLimit : 30_000_000.GasInt,
|
gasLimit : DEFAULT_GAS_LIMIT.GasInt,
|
||||||
gasPrice : 0.GasInt,
|
gasPrice : 0.GasInt,
|
||||||
to : BEACON_ROOTS_ADDRESS,
|
to : BEACON_ROOTS_ADDRESS,
|
||||||
input : @(beaconRoot.data),
|
input : @(beaconRoot.data),
|
||||||
|
@ -168,7 +168,7 @@ proc processParentBlockHash*(vmState: BaseVMState, prevHash: Hash32):
|
||||||
call = CallParams(
|
call = CallParams(
|
||||||
vmState : vmState,
|
vmState : vmState,
|
||||||
sender : SYSTEM_ADDRESS,
|
sender : SYSTEM_ADDRESS,
|
||||||
gasLimit : 30_000_000.GasInt,
|
gasLimit : DEFAULT_GAS_LIMIT.GasInt,
|
||||||
gasPrice : 0.GasInt,
|
gasPrice : 0.GasInt,
|
||||||
to : HISTORY_STORAGE_ADDRESS,
|
to : HISTORY_STORAGE_ADDRESS,
|
||||||
input : @(prevHash.data),
|
input : @(prevHash.data),
|
||||||
|
@ -197,7 +197,7 @@ proc processDequeueWithdrawalRequests*(vmState: BaseVMState): seq[byte] =
|
||||||
call = CallParams(
|
call = CallParams(
|
||||||
vmState : vmState,
|
vmState : vmState,
|
||||||
sender : SYSTEM_ADDRESS,
|
sender : SYSTEM_ADDRESS,
|
||||||
gasLimit : 30_000_000.GasInt,
|
gasLimit : DEFAULT_GAS_LIMIT.GasInt,
|
||||||
gasPrice : 0.GasInt,
|
gasPrice : 0.GasInt,
|
||||||
to : WITHDRAWAL_QUEUE_ADDRESS,
|
to : WITHDRAWAL_QUEUE_ADDRESS,
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@ proc processDequeueConsolidationRequests*(vmState: BaseVMState): seq[byte] =
|
||||||
call = CallParams(
|
call = CallParams(
|
||||||
vmState : vmState,
|
vmState : vmState,
|
||||||
sender : SYSTEM_ADDRESS,
|
sender : SYSTEM_ADDRESS,
|
||||||
gasLimit : 30_000_000.GasInt,
|
gasLimit : DEFAULT_GAS_LIMIT.GasInt,
|
||||||
gasPrice : 0.GasInt,
|
gasPrice : 0.GasInt,
|
||||||
to : CONSOLIDATION_QUEUE_ADDRESS,
|
to : CONSOLIDATION_QUEUE_ADDRESS,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue