Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[Upgrades] v0.0.12 upgrade #1043
[Upgrades] v0.0.12 upgrade #1043
Changes from 2 commits
f187c35
adc3c4d
fb373c2
147949f
dd6d1df
220eff6
f7a8636
b8965af
9c2ed24
32163df
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 45 in app/upgrades/historical.go
GitHub Actions / misspell
[misspell] app/upgrades/historical.go#L45
Raw output
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.
Should we be using
main
or a specific sha (that equals to main) when you're preparing this PR?That way this will be "evergreen"
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.
TLDR: I want to use
main
here. This link is for the purpose of writing an upgrade. Once we go through the upgrade - we no longer need this code, perhaps only as a reference.Complex answer, feel free to skip:
We're supposed to create a release and use artifacts (binaries & images) produced by that release to upgrade validators, full nodes, seeds, and relayminers.
The release can be created off any branch or any commit. It MUST include the upgrade plan code (introduced by this PR).
Now, the code in the
main
branch can drift between the moment of writing this upgrade code and creating a new release. So if we want to make things "right" - we need to have more branches, perhaps dedicated version branches. Do you remember we talked about howcosmos-sdk
branches work? We also talked about over-engineering? If the codebase is active enough, we'd have no other choice but to have a similar complex branching system. For example, if there's a feature in themain
branch we DON'T want to be included in the release - there's just no other way I can think of.But we are a small team, and we can track that drift to changes to upgrade, if necessary, before the release. So I want to compare to
main
.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.
Moving conversation to discord to get this over the finish line.
https://discord.com/channels/824324475256438814/1332065342746525778/1336434350660784239
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.
You also need to check if the address is different
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.
Changed the logic a bit.
If more than 1 supplier: log and overwrite,
if 1 supplier: just update the data keeping existing revshare address (assuming 100% goes to that one address)