-
Notifications
You must be signed in to change notification settings - Fork 212
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(cosmos): un-wire x/crisis #8582
Conversation
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.
LGTM with one thing to check.
@@ -236,7 +236,6 @@ export function finishCosmosGenesis({ genesisJson, exportedGenesisJson }) { | |||
|
|||
// Set the denomination for different modules. | |||
genesis.app_state.mint.params.mint_denom = MINT_DENOM; | |||
genesis.app_state.crisis.constant_fee.denom = MINT_DENOM; |
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.
Does this run afoul of requiring a bundle update?
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.
Nope, the CLI does not impact bundles. Because of cycles in our dependency graph it will cause a version bump of some dependencies, but other PRs will do that too.
* feat(cosmos): un-wire x/crisis * fixup! feat(cosmos): un-wire x/crisis --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* feat(cosmos): un-wire x/crisis * fixup! feat(cosmos): un-wire x/crisis --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* feat(cosmos): un-wire x/crisis * fixup! feat(cosmos): un-wire x/crisis --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
closes: #8581
Description
Remove the
x/crisis
module, as it is not functioning as designed.This is effectively applying the changes from
https://github.com/cosmos/cosmos-sdk/pull/18380
to our app.Security Considerations
Addresses GHSA-qfc5-6r3j-jj22 and GHSA-w5w5-2882-47pc
Scaling Considerations
None
Documentation Considerations
TBD
Testing Considerations
I have manually verify that a
MsgVerifyInvariant
does not execute, it fails with a parse error.I did not add to an upgrade test as it would have required some contortions to generate the message manually (or before the upgrade), and sign and broadcast it separately.
Upgrade Considerations
I added code to plumb the removal of the module in the store loader on upgrade. Requires a chain software upgrade.