From 376f6d212510b0d70670326c2ffb1108416fd497 Mon Sep 17 00:00:00 2001 From: 0xalpharush <0xalpharush@protonmail.com> Date: Wed, 11 Dec 2024 09:24:48 -0600 Subject: [PATCH] Increase default gas limit from 30M to 36M --- core/state_processor.go | 12 ++++++------ miner/miner.go | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/state_processor.go b/core/state_processor.go index 3eb83a673a..fb513f344d 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -220,7 +220,7 @@ func ProcessBeaconBlockRoot(beaconRoot common.Hash, evm *vm.EVM) { } msg := &Message{ From: params.SystemAddress, - GasLimit: 30_000_000, + GasLimit: 36_000_000, GasPrice: common.Big0, GasFeeCap: common.Big0, GasTipCap: common.Big0, @@ -229,7 +229,7 @@ func ProcessBeaconBlockRoot(beaconRoot common.Hash, evm *vm.EVM) { } evm.SetTxContext(NewEVMTxContext(msg)) evm.StateDB.AddAddressToAccessList(params.BeaconRootsAddress) - _, _, _ = evm.Call(vm.AccountRef(msg.From), *msg.To, msg.Data, 30_000_000, common.U2560) + _, _, _ = evm.Call(vm.AccountRef(msg.From), *msg.To, msg.Data, 36_000_000, common.U2560) evm.StateDB.Finalise(true) } @@ -244,7 +244,7 @@ func ProcessParentBlockHash(prevHash common.Hash, evm *vm.EVM) { } msg := &Message{ From: params.SystemAddress, - GasLimit: 30_000_000, + GasLimit: 36_000_000, GasPrice: common.Big0, GasFeeCap: common.Big0, GasTipCap: common.Big0, @@ -253,7 +253,7 @@ func ProcessParentBlockHash(prevHash common.Hash, evm *vm.EVM) { } evm.SetTxContext(NewEVMTxContext(msg)) evm.StateDB.AddAddressToAccessList(params.HistoryStorageAddress) - _, _, _ = evm.Call(vm.AccountRef(msg.From), *msg.To, msg.Data, 30_000_000, common.U2560) + _, _, _ = evm.Call(vm.AccountRef(msg.From), *msg.To, msg.Data, 36_000_000, common.U2560) evm.StateDB.Finalise(true) } @@ -278,7 +278,7 @@ func processRequestsSystemCall(requests *[][]byte, evm *vm.EVM, requestType byte } msg := &Message{ From: params.SystemAddress, - GasLimit: 30_000_000, + GasLimit: 36_000_000, GasPrice: common.Big0, GasFeeCap: common.Big0, GasTipCap: common.Big0, @@ -286,7 +286,7 @@ func processRequestsSystemCall(requests *[][]byte, evm *vm.EVM, requestType byte } evm.SetTxContext(NewEVMTxContext(msg)) evm.StateDB.AddAddressToAccessList(addr) - ret, _, _ := evm.Call(vm.AccountRef(msg.From), *msg.To, msg.Data, 30_000_000, common.U2560) + ret, _, _ := evm.Call(vm.AccountRef(msg.From), *msg.To, msg.Data, 36_000_000, common.U2560) evm.StateDB.Finalise(true) if len(ret) == 0 { return // skip empty output diff --git a/miner/miner.go b/miner/miner.go index 9892c08ed6..7b8a81e2da 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -52,7 +52,7 @@ type Config struct { // DefaultConfig contains default settings for miner. var DefaultConfig = Config{ - GasCeil: 30_000_000, + GasCeil: 36_000_000, GasPrice: big.NewInt(params.GWei / 1000), // The default recommit time is chosen as two seconds since