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
2e2dd25f
Unverified
Commit
2e2dd25f
authored
Jul 25, 2023
by
mergify[bot]
Committed by
GitHub
Jul 25, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into feat/e2e-genesis-error-handling
parents
6aa0e578
0ecda15d
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 @
2e2dd25f
...
@@ -15,8 +15,8 @@ import (
...
@@ -15,8 +15,8 @@ import (
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/params"
)
)
// default
L2GasLimit represents the default gas limit for an L2
block.
// default
GasLimit represents the default gas limit for a genesis
block.
const
default
L2
GasLimit
=
30
_000_000
const
defaultGasLimit
=
30
_000_000
// BedrockTransitionBlockExtraData represents the default extra data for the bedrock transition block.
// BedrockTransitionBlockExtraData represents the default extra data for the bedrock transition block.
var
BedrockTransitionBlockExtraData
=
[]
byte
(
"BEDROCK"
)
var
BedrockTransitionBlockExtraData
=
[]
byte
(
"BEDROCK"
)
...
@@ -66,7 +66,7 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
...
@@ -66,7 +66,7 @@ func NewL2Genesis(config *DeployConfig, block *types.Block) (*core.Genesis, erro
gasLimit
:=
config
.
L2GenesisBlockGasLimit
gasLimit
:=
config
.
L2GenesisBlockGasLimit
if
gasLimit
==
0
{
if
gasLimit
==
0
{
gasLimit
=
default
L2
GasLimit
gasLimit
=
defaultGasLimit
}
}
baseFee
:=
config
.
L2GenesisBlockBaseFeePerGas
baseFee
:=
config
.
L2GenesisBlockBaseFeePerGas
if
baseFee
==
nil
{
if
baseFee
==
nil
{
...
@@ -144,7 +144,7 @@ func NewL1Genesis(config *DeployConfig) (*core.Genesis, error) {
...
@@ -144,7 +144,7 @@ func NewL1Genesis(config *DeployConfig) (*core.Genesis, error) {
gasLimit
:=
config
.
L1GenesisBlockGasLimit
gasLimit
:=
config
.
L1GenesisBlockGasLimit
if
gasLimit
==
0
{
if
gasLimit
==
0
{
gasLimit
=
15
_000_000
gasLimit
=
defaultGasLimit
}
}
baseFee
:=
config
.
L1GenesisBlockBaseFeePerGas
baseFee
:=
config
.
L1GenesisBlockBaseFeePerGas
if
baseFee
==
nil
{
if
baseFee
==
nil
{
...
...
op-chain-ops/genesis/layer_one.go
View file @
2e2dd25f
...
@@ -120,7 +120,7 @@ func BuildL1DeveloperGenesis(config *DeployConfig) (*core.Genesis, error) {
...
@@ -120,7 +120,7 @@ func BuildL1DeveloperGenesis(config *DeployConfig) (*core.Genesis, error) {
}
}
gasLimit
:=
uint64
(
config
.
L2GenesisBlockGasLimit
)
gasLimit
:=
uint64
(
config
.
L2GenesisBlockGasLimit
)
if
gasLimit
==
0
{
if
gasLimit
==
0
{
gasLimit
=
default
L2
GasLimit
gasLimit
=
defaultGasLimit
}
}
data
,
err
=
sysCfgABI
.
Pack
(
data
,
err
=
sysCfgABI
.
Pack
(
...
@@ -298,7 +298,7 @@ func deployL1Contracts(config *DeployConfig, backend *backends.SimulatedBackend)
...
@@ -298,7 +298,7 @@ func deployL1Contracts(config *DeployConfig, backend *backends.SimulatedBackend)
}
}
gasLimit
:=
uint64
(
config
.
L2GenesisBlockGasLimit
)
gasLimit
:=
uint64
(
config
.
L2GenesisBlockGasLimit
)
if
gasLimit
==
0
{
if
gasLimit
==
0
{
gasLimit
=
default
L2
GasLimit
gasLimit
=
defaultGasLimit
}
}
constructors
=
append
(
constructors
,
[]
deployer
.
Constructor
{
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