-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
x/upgrade: remove support for time based upgrades #8849
Merged
mergify
merged 15 commits into
cosmos:master
from
technicallyty:ty-8801-remove_time_upgrades
Mar 14, 2021
Merged
Changes from 12 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
e349c19
remove time based upgrades
technicallyty 30ce95f
Merge branch 'master' into ty-8801-remove_time_upgrades
technicallyty b2ffed6
cleanup
technicallyty 833af0a
cleanup evidence of time based upgrades
technicallyty 5460e87
cleanup docs referring to time based upgrades
technicallyty 5d1f563
forgot one
technicallyty 3e401a1
added line to changelog deprecated section
technicallyty 1e539d8
Update proto/cosmos/upgrade/v1beta1/upgrade.proto
technicallyty 8a09779
update changelog line to correct section
technicallyty cbf7c1a
Merge branch 'ty-8801-remove_time_upgrades' of https://github.com/tec…
technicallyty c9be1e0
Merge branch 'master' into ty-8801-remove_time_upgrades
technicallyty fee853d
Merge branch 'master' into ty-8801-remove_time_upgrades
sahith-narahari 547380c
Merge branch 'master' into ty-8801-remove_time_upgrades
aaronc 28fe6b7
update buf config to allow reserved fields
technicallyty def349d
Merge branch 'ty-8801-remove_time_upgrades' of https://github.com/tec…
technicallyty File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
Package upgrade provides a Cosmos SDK module that can be used for smoothly upgrading a live Cosmos chain to a | ||
new software version. It accomplishes this by providing a BeginBlocker hook that prevents the blockchain state | ||
machine from proceeding once a pre-defined upgrade block time or height has been reached. The module does not prescribe | ||
machine from proceeding once a pre-defined upgrade block height has been reached. The module does not prescribe | ||
anything regarding how governance decides to do an upgrade, but just the mechanism for coordinating the upgrade safely. | ||
Without software support for upgrades, upgrading a live chain is risky because all of the validators need to pause | ||
their state machines at exactly the same point in the process. If this is not done correctly, there can be state | ||
|
@@ -21,9 +21,9 @@ perform a migration, but also to identify if this is the old or new version (eg. | |
a handler registered for the named upgrade). | ||
|
||
Once the release candidate along with an appropriate upgrade handler is frozen, | ||
we can have a governance vote to approve this upgrade at some future block time | ||
or block height (e.g. 200000). This is known as an upgrade.Plan. The v0.38.0 code will not know of this | ||
handler, but will continue to run until block 200000, when the plan kicks in at BeginBlock. It will check | ||
we can have a governance vote to approve this upgrade at some future block height (e.g. 200000). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks for thinking about this file and the SPEC 👍 |
||
This is known as an upgrade.Plan. The v0.38.0 code will not know of this handler, but will | ||
continue to run until block 200000, when the plan kicks in at BeginBlock. It will check | ||
for existence of the handler, and finding it missing, know that it is running the obsolete software, | ||
and gracefully exit. | ||
|
||
|
@@ -54,7 +54,7 @@ should call ScheduleUpgrade to schedule an upgrade and ClearUpgradePlan to cance | |
|
||
Performing Upgrades | ||
|
||
Upgrades can be scheduled at either a predefined block height or time. Once this block height or time is reached, the | ||
Upgrades can be scheduled at a predefined block height. Once this block height is reached, the | ||
existing software will cease to process ABCI messages and a new version with code that handles the upgrade must be deployed. | ||
All upgrades are coordinated by a unique upgrade name that cannot be reused on the same blockchain. In order for the upgrade | ||
module to know that the upgrade has been safely applied, a handler with the name of the upgrade must be installed. | ||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I suspect we want to add a
Deprecated
section and add this to that