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
d04876f5
Unverified
Commit
d04876f5
authored
May 04, 2023
by
OptimismBot
Committed by
GitHub
May 04, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5614 from ethereum-optimism/inphi/missing-batch
op-e2e: wait for observed seq reorg in TestMissingBatchE2E
parents
11a204b8
75a2d57b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
system_test.go
op-e2e/system_test.go
+5
-2
No files found.
op-e2e/system_test.go
View file @
d04876f5
...
@@ -393,6 +393,9 @@ func TestMissingBatchE2E(t *testing.T) {
...
@@ -393,6 +393,9 @@ func TestMissingBatchE2E(t *testing.T) {
l2Seq
:=
sys
.
Clients
[
"sequencer"
]
l2Seq
:=
sys
.
Clients
[
"sequencer"
]
l2Verif
:=
sys
.
Clients
[
"verifier"
]
l2Verif
:=
sys
.
Clients
[
"verifier"
]
seqRollupRPCClient
,
err
:=
rpc
.
DialContext
(
context
.
Background
(),
sys
.
RollupNodes
[
"sequencer"
]
.
HTTPEndpoint
())
require
.
Nil
(
t
,
err
)
seqRollupClient
:=
sources
.
NewRollupClient
(
client
.
NewBaseRPCClient
(
seqRollupRPCClient
))
// Transactor Account
// Transactor Account
ethPrivKey
:=
cfg
.
Secrets
.
Alice
ethPrivKey
:=
cfg
.
Secrets
.
Alice
...
@@ -414,8 +417,8 @@ func TestMissingBatchE2E(t *testing.T) {
...
@@ -414,8 +417,8 @@ func TestMissingBatchE2E(t *testing.T) {
require
.
Equal
(
t
,
ethereum
.
NotFound
,
err
,
"Found transaction in verifier when it should not have been included"
)
require
.
Equal
(
t
,
ethereum
.
NotFound
,
err
,
"Found transaction in verifier when it should not have been included"
)
// Wait a short time for the L2 reorg to occur on the sequencer as well.
// Wait a short time for the L2 reorg to occur on the sequencer as well.
// The proper thing to do is to wait until the sequencer marks this block safe.
err
=
waitForSafeHead
(
ctx
,
receipt
.
BlockNumber
.
Uint64
(),
seqRollupClient
)
<-
time
.
After
(
2
*
time
.
Second
)
require
.
Nil
(
t
,
err
,
"timeout waiting for L2 reorg on sequencer safe head"
)
// Assert that the reconciliation process did an L2 reorg on the sequencer to remove the invalid block
// Assert that the reconciliation process did an L2 reorg on the sequencer to remove the invalid block
ctx2
,
cancel
:=
context
.
WithTimeout
(
context
.
Background
(),
time
.
Second
)
ctx2
,
cancel
:=
context
.
WithTimeout
(
context
.
Background
(),
time
.
Second
)
...
...
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