You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During gaia release testing, an update to ConsensusParams was attempted via a governance proposal. The proposal was passed but it failed to execute with a panic:
Upon further inspection, it was noticed that on cosmos-sdk v0.50.x and main the ConsensusParams.Version information was not initialized properly. The system was expecting a zero-value but the fields were in fact nil (unset) when the params were fetched from the consensus params collection.
Further context:
This may affect affects all networks that migrated from v0.47 to v0.50 as changes are related to cometbft v0.38.
To add context on how that happened let me paste my slack message:
I see what happened, it wasn't required before, and baseapp.MigrateParams didn't set a default value either. So you could migrate to v0.50 without it.
Then comet found an issue with our consensus params msg update handling and hardened it: #20381.
That made x/consensus use their function, and that one expected a version being set.
Is there an existing issue for this?
What happened?
During gaia release testing, an update to
ConsensusParams
was attempted via a governance proposal. The proposal was passed but it failed to execute with a panic:Upon further inspection, it was noticed that on cosmos-sdk
v0.50.x
andmain
theConsensusParams.Version
information was not initialized properly. The system was expecting a zero-value but the fields were in fact nil (unset) when the params were fetched from the consensus params collection.Further context:
This may affect affects all networks that migrated from v0.47 to v0.50 as changes are related to cometbft v0.38.
This can be mitigated by initializing the consensus params in
UpgradeHandler
and setting the version information to zero-value.Additionally, this could be patched so the execution flow does not panic and instead sets a zero-value for the
ConsensusParams.Version
.This does not affect "new" chains created with cosmos-sdk v0.50.
Cosmos SDK Version
v0.50.x, main
How to reproduce?
Submit a consensus upgrade proposal to a chain that migrated from v0.47 to v0.50.
Upon proposal passing, execution will fail:
The text was updated successfully, but these errors were encountered: