-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Param name change during on-chain upgrade breaks the start
command
#9637
Comments
Interesting. I didn't even know we supported parameter name changes. Why not just deprecate the old and use a new param? Or can this potentially be handled via the migration process? |
@alexanderbez This was handled via an on-chain upgrade by simply unmarshalling the params using the old types, and then re-marshalling them with the new types, so this can happen to other chains as well |
The application does not read genesis state apart from |
Are you reusing the same proto field number? |
@RiccardoM For some context, which module are you using? Is it a custom module or a SDK module? If you're using genesis JSON migration, do you have a |
@AmauryM It was a custom module that used on-chain migration doing the following:
Anyway, it appear that this was an error caused by a wrong configuration from the node operator. It was solved by using state sync and no error showed up later on. Thanks everyone, I'm closing this. |
Summary of Bug
If an on-chain upgrade changes the names of some module parameters, it will break new node from syncing in the future.
Version
v0.42.6
Steps to Reproduce
A
toB
.This should return the following error:
From what I understand, the problem is that even after the upgrade the software tries reading the genesis state using the old parameter name as it is supposed to do. However, since the parameter name is changed, the node can never start again as the genesis reading will always fail when unmarshaling the JSON file.
This also happens to node that are synced using state sync, not only to nodes that are synced using fast sync.
Tracked also inside desmos-labs/desmos#531
For Admin Use
The text was updated successfully, but these errors were encountered: