-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow minor releases before the block height (#320)
## Describe your changes and provide context - If a pending minor release is running and it's before the block height, apply the upgrade - If a pending release has been applied and before the block height, don't panic - If a release is past the block height, regardless of type, panic One can pass an upgradeType to info as follows ``` seid tx gov submit-proposal software-upgrade ... --upgrade-info '{"upgradeType":"minor"}' ``` ## Testing performed to validate your change - Unit Tests - Local Testing: - Passed minor upgrade proposal in future block, and verified I could upgrade before that block - Passed minor upgrade proposal in future block, and verified it panics if not upgraded at that block - Passed major upgrade proposal in future block, and verified I could NOT upgrade before that block - Skip height continues to work for major and minor releases (a skip-height applies to the _deadline_ block for minor)
- Loading branch information
1 parent
2066dbf
commit b64945e
Showing
5 changed files
with
272 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters