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
807f237d
Unverified
Commit
807f237d
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 op-e2e/shanghai-l1
parents
f97b86ee
4ca169c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
genesis.go
op-chain-ops/genesis/genesis.go
+4
-4
layer_one.go
op-chain-ops/genesis/layer_one.go
+2
-2
l2_verifier.go
op-e2e/actions/l2_verifier.go
+4
-0
No files found.
op-chain-ops/genesis/genesis.go
View file @
807f237d
...
@@ -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
{
...
@@ -145,7 +145,7 @@ func NewL1Genesis(config *DeployConfig) (*core.Genesis, error) {
...
@@ -145,7 +145,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 @
807f237d
...
@@ -121,7 +121,7 @@ func BuildL1DeveloperGenesis(config *DeployConfig) (*core.Genesis, error) {
...
@@ -121,7 +121,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
(
...
@@ -299,7 +299,7 @@ func deployL1Contracts(config *DeployConfig, backend *backends.SimulatedBackend)
...
@@ -299,7 +299,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
{
...
...
op-e2e/actions/l2_verifier.go
View file @
807f237d
...
@@ -17,6 +17,7 @@ import (
...
@@ -17,6 +17,7 @@ import (
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/rollup/driver"
"github.com/ethereum-optimism/optimism/op-node/rollup/driver"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-node/testutils"
)
)
...
@@ -215,6 +216,9 @@ func (s *L2Verifier) ActL2PipelineStep(t Testing) {
...
@@ -215,6 +216,9 @@ func (s *L2Verifier) ActL2PipelineStep(t Testing) {
return
return
}
else
if
err
!=
nil
&&
errors
.
Is
(
err
,
derive
.
ErrTemporary
)
{
}
else
if
err
!=
nil
&&
errors
.
Is
(
err
,
derive
.
ErrTemporary
)
{
s
.
log
.
Warn
(
"Derivation process temporary error"
,
"err"
,
err
)
s
.
log
.
Warn
(
"Derivation process temporary error"
,
"err"
,
err
)
if
errors
.
Is
(
err
,
sync
.
WrongChainErr
)
{
// action-tests don't back off on temporary errors. Avoid a bad genesis setup from looping.
t
.
Fatalf
(
"genesis setup issue: %v"
,
err
)
}
return
return
}
else
if
err
!=
nil
&&
errors
.
Is
(
err
,
derive
.
ErrCritical
)
{
}
else
if
err
!=
nil
&&
errors
.
Is
(
err
,
derive
.
ErrCritical
)
{
t
.
Fatalf
(
"derivation failed critically: %v"
,
err
)
t
.
Fatalf
(
"derivation failed critically: %v"
,
err
)
...
...
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