Skip to content
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

Merged
merged 4 commits into from
Dec 6, 2023
Merged

Conversation

mhofman
Copy link
Member

@mhofman mhofman commented Nov 30, 2023

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.

@mhofman mhofman requested a review from JimLarson November 30, 2023 14:35
@mhofman mhofman added the force:integration Force integration tests to run on PR label Nov 30, 2023
Copy link
Contributor

@JimLarson JimLarson left a 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;
Copy link
Contributor

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?

Copy link
Member Author

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.

@mhofman mhofman added the automerge:squash Automatically squash merge label Dec 6, 2023
@mergify mergify bot merged commit 7153535 into master Dec 6, 2023
67 checks passed
@mergify mergify bot deleted the mhofman/8581-unwire-crisis-module branch December 6, 2023 05:26
mhofman added a commit that referenced this pull request Dec 6, 2023
* 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>
mhofman added a commit that referenced this pull request Dec 6, 2023
* 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>
mhofman added a commit that referenced this pull request Dec 6, 2023
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:squash Automatically squash merge force:integration Force integration tests to run on PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backport x/crisis non halt
2 participants