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
6c697865
Unverified
Commit
6c697865
authored
Sep 14, 2023
by
protolambda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-e2e: change geth options init to use append
parent
a9599b05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
l2_gossip_test.go
op-e2e/l2_gossip_test.go
+2
-2
system_test.go
op-e2e/system_test.go
+6
-6
No files found.
op-e2e/l2_gossip_test.go
View file @
6c697865
...
@@ -14,8 +14,8 @@ func TestTxGossip(t *testing.T) {
...
@@ -14,8 +14,8 @@ func TestTxGossip(t *testing.T) {
gethOpts
:=
[]
geth
.
GethOption
{
gethOpts
:=
[]
geth
.
GethOption
{
geth
.
WithP2P
(),
geth
.
WithP2P
(),
}
}
cfg
.
GethOptions
[
"sequencer"
]
=
gethOpts
cfg
.
GethOptions
[
"sequencer"
]
=
append
(
cfg
.
GethOptions
[
"sequencer"
],
gethOpts
...
)
cfg
.
GethOptions
[
"verifier"
]
=
gethOpts
cfg
.
GethOptions
[
"verifier"
]
=
append
(
cfg
.
GethOptions
[
"verifier"
],
gethOpts
...
)
sys
,
err
:=
cfg
.
Start
(
t
)
sys
,
err
:=
cfg
.
Start
(
t
)
require
.
NoError
(
t
,
err
,
"Start system"
)
require
.
NoError
(
t
,
err
,
"Start system"
)
...
...
op-e2e/system_test.go
View file @
6c697865
...
@@ -262,20 +262,20 @@ func TestPendingGasLimit(t *testing.T) {
...
@@ -262,20 +262,20 @@ func TestPendingGasLimit(t *testing.T) {
// configure the L2 gas limit to be high, and the pending gas limits to be lower for resource saving.
// configure the L2 gas limit to be high, and the pending gas limits to be lower for resource saving.
cfg
.
DeployConfig
.
L2GenesisBlockGasLimit
=
30
_000_000
cfg
.
DeployConfig
.
L2GenesisBlockGasLimit
=
30
_000_000
cfg
.
GethOptions
[
"sequencer"
]
=
[]
geth
.
GethOption
{
cfg
.
GethOptions
[
"sequencer"
]
=
append
(
cfg
.
GethOptions
[
"sequencer"
],
[]
geth
.
GethOption
{
func
(
ethCfg
*
ethconfig
.
Config
,
nodeCfg
*
node
.
Config
)
error
{
func
(
ethCfg
*
ethconfig
.
Config
,
nodeCfg
*
node
.
Config
)
error
{
ethCfg
.
Miner
.
GasCeil
=
10
_000_000
ethCfg
.
Miner
.
GasCeil
=
10
_000_000
ethCfg
.
Miner
.
RollupComputePendingBlock
=
true
ethCfg
.
Miner
.
RollupComputePendingBlock
=
true
return
nil
return
nil
},
},
}
}
...
)
cfg
.
GethOptions
[
"verifier"
]
=
[]
geth
.
GethOption
{
cfg
.
GethOptions
[
"verifier"
]
=
append
(
cfg
.
GethOptions
[
"verifier"
],
[]
geth
.
GethOption
{
func
(
ethCfg
*
ethconfig
.
Config
,
nodeCfg
*
node
.
Config
)
error
{
func
(
ethCfg
*
ethconfig
.
Config
,
nodeCfg
*
node
.
Config
)
error
{
ethCfg
.
Miner
.
GasCeil
=
9
_000_000
ethCfg
.
Miner
.
GasCeil
=
9
_000_000
ethCfg
.
Miner
.
RollupComputePendingBlock
=
true
ethCfg
.
Miner
.
RollupComputePendingBlock
=
true
return
nil
return
nil
},
},
}
}
...
)
sys
,
err
:=
cfg
.
Start
(
t
)
sys
,
err
:=
cfg
.
Start
(
t
)
require
.
Nil
(
t
,
err
,
"Error starting up system"
)
require
.
Nil
(
t
,
err
,
"Error starting up system"
)
...
@@ -1495,12 +1495,12 @@ func TestRequiredProtocolVersionChangeAndHalt(t *testing.T) {
...
@@ -1495,12 +1495,12 @@ func TestRequiredProtocolVersionChangeAndHalt(t *testing.T) {
// configure halt in verifier op-node
// configure halt in verifier op-node
cfg
.
Nodes
[
"verifier"
]
.
RollupHalt
=
"major"
cfg
.
Nodes
[
"verifier"
]
.
RollupHalt
=
"major"
// configure halt in verifier op-geth node
// configure halt in verifier op-geth node
cfg
.
GethOptions
[
"verifier"
]
=
[]
geth
.
GethOption
{
cfg
.
GethOptions
[
"verifier"
]
=
append
(
cfg
.
GethOptions
[
"verifier"
],
[]
geth
.
GethOption
{
func
(
ethCfg
*
ethconfig
.
Config
,
nodeCfg
*
node
.
Config
)
error
{
func
(
ethCfg
*
ethconfig
.
Config
,
nodeCfg
*
node
.
Config
)
error
{
ethCfg
.
RollupHaltOnIncompatibleProtocolVersion
=
"major"
ethCfg
.
RollupHaltOnIncompatibleProtocolVersion
=
"major"
return
nil
return
nil
},
},
}
}
...
)
sys
,
err
:=
cfg
.
Start
(
t
)
sys
,
err
:=
cfg
.
Start
(
t
)
require
.
Nil
(
t
,
err
,
"Error starting up system"
)
require
.
Nil
(
t
,
err
,
"Error starting up system"
)
...
...
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