Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
0ecda15d
Unverified
Commit
0ecda15d
authored
Jul 24, 2023
by
OptimismBot
Committed by
GitHub
Jul 24, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6430 from ethereum-optimism/feat/cleanup-default-gaslimit
op-chain-ops: cleanup default gas limit
parents
a19535eb
494d5173
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
genesis.go
op-chain-ops/genesis/genesis.go
+4
-4
layer_one.go
op-chain-ops/genesis/layer_one.go
+2
-2
No files found.
op-chain-ops/genesis/genesis.go
View file @
0ecda15d
...
...
@@ -15,8 +15,8 @@ import (
"github.com/ethereum/go-ethereum/params"
)
// default
L2GasLimit represents the default gas limit for an L2
block.
const
default
L2
GasLimit
=
30
_000_000
// default
GasLimit 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
=
default
L2
GasLimit
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
{
...
...
op-chain-ops/genesis/layer_one.go
View file @
0ecda15d
...
...
@@ -120,7 +120,7 @@ func BuildL1DeveloperGenesis(config *DeployConfig) (*core.Genesis, error) {
}
gasLimit
:=
uint64
(
config
.
L2GenesisBlockGasLimit
)
if
gasLimit
==
0
{
gasLimit
=
default
L2
GasLimit
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
=
default
L2
GasLimit
gasLimit
=
defaultGasLimit
}
constructors
=
append
(
constructors
,
[]
deployer
.
Constructor
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment