Add Interop Upgrade Txs to op-node#15517
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #15517 +/- ##
============================================
+ Coverage 46.10% 92.35% +46.25%
============================================
Files 1281 122 -1159
Lines 105461 5850 -99611
============================================
- Hits 48626 5403 -43223
+ Misses 53332 435 -52897
+ Partials 3503 12 -3491
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
9d786a9 to
443af90
Compare
sebastianst
left a comment
There was a problem hiding this comment.
It seems to match the specs (but using the correct updateTo call argument). But there's only so much we can verify statically. We need an end2end test of the transition block, ideally an actions/proof test, to verify that the upgrade transactions work as intended.
443af90 to
6c1afd2
Compare
6c1afd2 to
c719370
Compare
c719370 to
c6fd3b7
Compare
c6fd3b7 to
ac81069
Compare
geoknee
left a comment
There was a problem hiding this comment.
Update all previous calls to VerifyInitialState() to also feature a call to actors.PrepareChainState(t).
Did you mean to say "update all calls to prepare with a call to verify"?
TestsAdds TestInteropUpgradeTransactions in op-e2e/actions/upgrades/interop_fork_test.go which verifies that the transactions match the spec.
Adds TestInteropUpgradeTransactions in op-e2e/actions/upgrades/interop_fork_test.go which verifies that the upgrade transactions are applied appropriately.
Nit: this doesn't seem accurate. NBD but it can cause some confusion.
7aa1ff8 to
a58d566
Compare
|
@geoknee thanks for the thorough review.
I updated the description to be more accurate. Apologies, it had fallen out of date. |
sebastianst
left a comment
There was a problem hiding this comment.
One critical check should be changed at the end of the action test, then we can merge it and work on remaining open discussions in the follow-up PR.
Remove rescheduled upgrade transactions
a58d566 to
ab7e3b0
Compare
Remove rescheduled upgrade transactions
Description
Adds interop upgrade txs in accordance to ethereum-optimism/specs#672
Necessary second-order changes:
ActBuildL2ToInterop()toL2Sequenceractors.PrepareChainState(t)has been renamed toactors.PrepareAndVerifyInitialState(t), and logic within that function has been factored into two new functions:actors.PrepareChainState(t), which performs the preparation steps (adopting the previous name ofactors.PrepareAndVerifyInitialState(t))actors.VerifyInitialState(t), which verifies that the chain has been setup correctly assuming a genesis timestamp interop activation.This makes it possible to use the logic in the new
actors.PrepareChainState(t)function without the verify step, which hardcodes the genesis timestamp activation assumption.Tests
TestInteropUpgradeTransactionsinop-e2e/actions/upgrades/interop_fork_test.gowhich verifies that the transactions match the spec.TestInteropUpgradeTransactionsinop-e2e/actions/upgrades/interop_fork_test.gowhich verifies that the upgrade transactions are applied appropriately.