Kava-Labs / kava

DeFi for Crypto.
Apache License 2.0
439 stars 364 forks source link

cli: add --unsafe-remove-modules flag to Rollback #1954

Closed pirtleshell closed 1 month ago

pirtleshell commented 1 month ago

bumps cosmos-sdk fork's tag to add new parameter flag to rollback.

rollback command accepts list of store keys names to forcibly delete.

this is useful for rolling back an upgrade that adds modules. rollbacks are performed by loading & committing the previous version. without this new functionality, the rollback will fail because no store version will exist for modules added during the upgrade.

to properly rollback the state, pass in a list of the added module names and they will be completely removed before the rollback of pre-existing modules takes place:

chain rollback --unsafe-remove-modules mynewmodule,othernewmodule

Checklist