-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into aleem/feegrant-sims
- Loading branch information
Showing
3 changed files
with
48 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,33 @@ | ||
# Cosmovisor v0.1.0 Release Notes | ||
# Cosmovisor v1.0.0 Release Notes | ||
|
||
This is the first tracked release of Cosmovisor. It contains the original behavior of scanning app stdin and stdout. | ||
Since the original design, this release contains one important feature: state backup. Since v0.1, by default, cosmovisor will make a state backup (`<app_directory>/data` directory). Backup will be skipped if `UNSAFE_SKIP_BACKUP=true` is set. | ||
This is the first major release of Cosmovisor. | ||
It changes the way Cosmovisor is searching for an upgrade event from an app. | ||
Instead of scanning standard input and standard output logs, the Cosmovisor | ||
observes the `$DAEMON_HOME/upgrade-info.json` file, that is produced by the | ||
`x/upgrade` module. The `upgrade-info.json` files is created by the `x/upgrade` | ||
module and contains information from the on-chain upgrade Plan record. | ||
Using the file based approach solved many outstanding problems: freezing when | ||
logs are too long, race condition with the `x/upgrade` handler, and potential | ||
exploit (if a chain would allow to log an arbitrary message, then an attacker | ||
could produce a fake upgrade signal and halt a chain or instrument a download | ||
of modified, hacked binary when the auto download option is enabled). | ||
|
||
Updates to this release will be pushed to `release/cosmovisor/v0.1.x` branch. | ||
## Auto downloads | ||
|
||
Please see the [CHANGELOG](https://github.com/cosmos/cosmos-sdk/blob/release/cosmovisor/v0.1.x/cosmovisor/CHANGELOG.md) for more details. | ||
Cosmovisor v1.0 supports auto downloads based on the information in the | ||
`data/upgrade-info.json`. In the Cosmos SDK `< v0.44`, that file doesn't contain | ||
`upgrade.Plan.Info`, that is needed for doing auto download. Hence Cosmovisor `v1.0` | ||
auto download won't work with Apps updating from `v0.43` and earlier. | ||
|
||
NOTE: we **don't recommend using auto download** functionality. It can lead to potential | ||
chain halt when the upgrade Plan contains a bad link or the resource with the | ||
binary will be temporarily unavailable. We are planning on adding a upgrade | ||
verification command which can potentially solve this issue. | ||
|
||
## Other updates | ||
|
||
+ Changed default value of `DAEMON_RESTART_AFTER_UPGRADE` to `true`. | ||
+ Added `version` command, which prints both the Cosmovisor and the associated app version. | ||
+ Added `help` command, which prints the Cosmovisor help without passing it to the associated version. This is an exception, because normally, Cosmovisor passes all arguments to the associated app. | ||
|
||
For more details, please see the [CHANGELOG](https://github.com/cosmos/cosmos-sdk/blob/cosmovisor/v1.0.0/cosmovisor/CHANGELOG.md). |