-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
fix multisig account pubkeys migration #8788
Conversation
* v0.40.0 final changelog & release notes * Trigger Build
#8376) From #8291 Bumps [github.com/gogo/protobuf](https://github.com/gogo/protobuf) from 1.3.1 to 1.3.2. - [Release notes](https://github.com/gogo/protobuf/releases) - [Commits](gogo/protobuf@v1.3.1...v1.3.2) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* add missing UnpackInterfaces functions * fix build * add tests cc @fedekunze Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com> Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
From: #8317 Co-authored-by: Amaury <amaury.martiny@protonmail.com>
* Update changelog for 0.40.1 * add tendermint * Add release notes * add known issues * update * update release notes * fix a few things in CHANGELOG * Update RELEASE_NOTES.md Co-authored-by: Alessio Treglia <alessio@tendermint.com>
From: #8404 Thanks: @fedekunze @colin-axner
From: #8437 Closes: #8266 Thanks: @fedekunze
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Release v0.41.0
From: #8436 Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com>
From #8458 Co-authored-by: Ethan Frey <ethanfrey@users.noreply.github.com>
From: #8481 Thanks: @michaelfig for the patch.
Still a problem with `cat` - a tmp_genesis file needs to be created and then moved to the old location Co-authored-by: Amaury <amaury.martiny@protonmail.com> Co-authored-by: Cory <cjlevinson@gmail.com>
Thanks @akhilkumarpilli for taking the time and making this PR! Did you test this, and if so how? |
Codecov Report
@@ Coverage Diff @@
## release/v0.41.x #8788 +/- ##
================================================
Coverage 61.95% 61.95%
================================================
Files 612 612
Lines 35417 35432 +15
================================================
+ Hits 21942 21953 +11
- Misses 11155 11156 +1
- Partials 2320 2323 +3
|
Yes, tested locally. I just ran akash local devnet with couple of multisig accounts and migrated it from v0.39 to v0.40. I tried to do multisig transaction but got some panic error from tx. I found issue is with empty public_keys array. Later, I tried with this fix by setting multisig account pub_key to null and it worked fine. |
Would be good to understand if this is an active issue on the hub |
It looks like an issue for which a known workaround is available. It still is an issue though I think. |
I have used hub multisigs after the migration and it worked fine. |
This seems like a good direction. the ways addresses work right now, it is always safe to set a pubkey to nil on export. If we implement key rotation and addresses become stateful, then export will be required for upgrades. |
@zmanian so you reckon this can be safely merged, yeah? |
|
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 @akhilkumarpilli
I suggest to merge this asap and tag a release. Otherwise other chains might run into similar issues and non-recoverable cases |
@akhilkumarpilli this should go into master and then backported to Cc @clevinson |
@akhilkumarpilli Could you rebase? |
Actually, I raised PR with base from |
@akhilkumarpilli this PR has already 2 approvals, so I would suggest to |
I tried to resolve conflicts but there are lot of conflicts and too messy. So, I will raise a new PR. |
Closing this and opened new one #8794. Thank you. |
Description
ref: #8776 (comment)
When migrating genesis to v0.40, set
pub_key
to null if account is multisig as a quick fixBefore we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes