-
Notifications
You must be signed in to change notification settings - Fork 3.7k
op-e2e: Simplify and correct wait period when finalizing withdrawals. #6193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
✅ Deploy Preview for opstack-docs canceled.
|
466200d
to
7ae5c33
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #6193 +/- ##
===========================================
- Coverage 44.93% 43.63% -1.31%
===========================================
Files 427 318 -109
Lines 28042 24656 -3386
Branches 352 0 -352
===========================================
- Hits 12601 10758 -1843
+ Misses 14361 12905 -1456
+ Partials 1080 993 -87
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for cleaning this up
7ae5c33
to
e85c483
Compare
This PR has been added to the merge queue, and will be merged soon. |
This PR is next in line to be merged, and will be merged as soon as checks pass. |
This PR is next in line to be merged, and will be merged as soon as checks pass. |
Description
Previously when testing withdrawals, we would wait until the output root is published and finalized, then prove the withdrawal then wait the withdrawal period again before finalizing. We also mixed up the starting point for the finalisation period - using the block the output root was published, not the block the withdrawal was proven which meant we waited one block too few which breaks when
estimateGas
switches to usinglatest
instead ofpending
.Now there are two separate functions:
Both functions now use waiters from
e2eutils
rather than manually re-implementing waiting logic.