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
f6662356
Unverified
Commit
f6662356
authored
Oct 31, 2023
by
Michael de Hoog
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test
parent
fae4e077
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
setup.go
op-e2e/setup.go
+8
-1
system_test.go
op-e2e/system_test.go
+11
-0
No files found.
op-e2e/setup.go
View file @
f6662356
...
@@ -203,6 +203,9 @@ type SystemConfig struct {
...
@@ -203,6 +203,9 @@ type SystemConfig struct {
// Target L1 tx size for the batcher transactions
// Target L1 tx size for the batcher transactions
BatcherTargetL1TxSizeBytes
uint64
BatcherTargetL1TxSizeBytes
uint64
// Max L1 tx size for the batcher transactions
BatcherMaxL1TxSizeBytes
uint64
// SupportL1TimeTravel determines if the L1 node supports quickly skipping forward in time
// SupportL1TimeTravel determines if the L1 node supports quickly skipping forward in time
SupportL1TimeTravel
bool
SupportL1TimeTravel
bool
}
}
...
@@ -684,13 +687,17 @@ func (cfg SystemConfig) Start(t *testing.T, _opts ...SystemConfigOption) (*Syste
...
@@ -684,13 +687,17 @@ func (cfg SystemConfig) Start(t *testing.T, _opts ...SystemConfigOption) (*Syste
if
os
.
Getenv
(
"OP_E2E_USE_SPAN_BATCH"
)
==
"true"
{
if
os
.
Getenv
(
"OP_E2E_USE_SPAN_BATCH"
)
==
"true"
{
batchType
=
derive
.
SpanBatchType
batchType
=
derive
.
SpanBatchType
}
}
batcherMaxL1TxSizeBytes
:=
cfg
.
BatcherMaxL1TxSizeBytes
if
batcherMaxL1TxSizeBytes
==
0
{
batcherMaxL1TxSizeBytes
=
240
_000
}
batcherCLIConfig
:=
&
bss
.
CLIConfig
{
batcherCLIConfig
:=
&
bss
.
CLIConfig
{
L1EthRpc
:
sys
.
EthInstances
[
"l1"
]
.
WSEndpoint
(),
L1EthRpc
:
sys
.
EthInstances
[
"l1"
]
.
WSEndpoint
(),
L2EthRpc
:
sys
.
EthInstances
[
"sequencer"
]
.
WSEndpoint
(),
L2EthRpc
:
sys
.
EthInstances
[
"sequencer"
]
.
WSEndpoint
(),
RollupRpc
:
sys
.
RollupNodes
[
"sequencer"
]
.
HTTPEndpoint
(),
RollupRpc
:
sys
.
RollupNodes
[
"sequencer"
]
.
HTTPEndpoint
(),
MaxPendingTransactions
:
0
,
MaxPendingTransactions
:
0
,
MaxChannelDuration
:
1
,
MaxChannelDuration
:
1
,
MaxL1TxSize
:
240
_000
,
MaxL1TxSize
:
batcherMaxL1TxSizeBytes
,
CompressorConfig
:
compressor
.
CLIConfig
{
CompressorConfig
:
compressor
.
CLIConfig
{
TargetL1TxSizeBytes
:
cfg
.
BatcherTargetL1TxSizeBytes
,
TargetL1TxSizeBytes
:
cfg
.
BatcherTargetL1TxSizeBytes
,
TargetNumFrames
:
1
,
TargetNumFrames
:
1
,
...
...
op-e2e/system_test.go
View file @
f6662356
...
@@ -1553,3 +1553,14 @@ func TestRequiredProtocolVersionChangeAndHalt(t *testing.T) {
...
@@ -1553,3 +1553,14 @@ func TestRequiredProtocolVersionChangeAndHalt(t *testing.T) {
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
t
.
Log
(
"verified that op-geth closed!"
)
t
.
Log
(
"verified that op-geth closed!"
)
}
}
func
TestIncorrectBatcherConfiguration
(
t
*
testing
.
T
)
{
InitParallel
(
t
)
cfg
:=
DefaultSystemConfig
(
t
)
// make the batcher configuration invalid
cfg
.
BatcherMaxL1TxSizeBytes
=
1
_
,
err
:=
cfg
.
Start
(
t
)
require
.
Error
(
t
,
err
,
"Expected error on invalid batcher configuration"
)
}
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