-
Notifications
You must be signed in to change notification settings - Fork 324
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
feat!: support coordinated v2 upgrade with flag #2803
Conversation
Co-authored-by: Evan Forbes <[email protected]>
…lestia-app into cal/minor-upgrade-testing
Codecov Report
@@ Coverage Diff @@
## main #2803 +/- ##
==========================================
- Coverage 19.80% 19.17% -0.64%
==========================================
Files 144 142 -2
Lines 17398 17282 -116
==========================================
- Hits 3446 3313 -133
- Misses 13631 13667 +36
+ Partials 321 302 -19
|
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.
Overall LGTM and seems a bit easier to maintain than a map of upgradeSchedules. My only feedback is around clarifying (either via godoc or flag rename) that the --upgrade-height
flag is only applicable to the v1 to v2 upgrade.
Co-authored-by: Rootul P <[email protected]>
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.
👍
Co-authored-by: Rootul P <[email protected]>
this still LGTM, but out of curiosity, did we add a commit here and github is still letting us merge without getting more approves? |
ahh I see thanks. assumed it was towards main |
I assume when it switches, it will dismiss the review |
The base branch was changed.
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.
Still LGTM
Overview
As discussed, given no pre-existing coordinating mechanism (i.e. signalling), v2 will have to work differently to future upgrades. Namely, nodes will run
start
with anupgrade-height
flag. At the height before that inEndBlock
, the protocol version will be updated and cometbft will receive the new v2 app version. There will be no state migrations. The block at the following height will be v2 and validators will begin validating and executing accordingly.I plan on following up with this with a e2e test upgrading from v1.x to
main
.Checklist