Commit 0ecda15d authored by OptimismBot's avatar OptimismBot Committed by GitHub

Merge pull request #6430 from ethereum-optimism/feat/cleanup-default-gaslimit

op-chain-ops: cleanup default gas limit
parents a19535eb 494d5173
......@@ -15,8 +15,8 @@ import (
"github.com/ethereum/go-ethereum/params"
)
// defaultL2GasLimit represents the default gas limit for an L2 block.
const defaultL2GasLimit = 30_000_000
// defaultGasLimit represents the default gas limit for a genesis block.
const defaultGasLimit = 30_000_000
// BedrockTransitionBlockExtraData represents the default extra data for the bedrock transition block.
var BedrockTransitionBlockExtraData = []byte("BEDROCK")
......@@ -66,7 +66,7 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
gasLimit := config.L2GenesisBlockGasLimit
if gasLimit == 0 {
gasLimit = defaultL2GasLimit
gasLimit = defaultGasLimit
}
baseFee := config.L2GenesisBlockBaseFeePerGas
if baseFee == nil {
......@@ -144,7 +144,7 @@ func NewL1Genesis(config *DeployConfig) (*core.Genesis, error) {
gasLimit := config.L1GenesisBlockGasLimit
if gasLimit == 0 {
gasLimit = 15_000_000
gasLimit = defaultGasLimit
}
baseFee := config.L1GenesisBlockBaseFeePerGas
if baseFee == nil {
......
......@@ -120,7 +120,7 @@ func BuildL1DeveloperGenesis(config *DeployConfig) (*core.Genesis, error) {
}
gasLimit := uint64(config.L2GenesisBlockGasLimit)
if gasLimit == 0 {
gasLimit = defaultL2GasLimit
gasLimit = defaultGasLimit
}
data, err = sysCfgABI.Pack(
......@@ -298,7 +298,7 @@ func deployL1Contracts(config *DeployConfig, backend *backends.SimulatedBackend)
}
gasLimit := uint64(config.L2GenesisBlockGasLimit)
if gasLimit == 0 {
gasLimit = defaultL2GasLimit
gasLimit = defaultGasLimit
}
constructors = append(constructors, []deployer.Constructor{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment