-
Notifications
You must be signed in to change notification settings - Fork 3
docs: chain release v1.20.1 #172
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
Draft
bguiz
wants to merge
2
commits into
main
Choose a base branch
from
docs/release-v1.20.1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+121
−1
Draft
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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 hidden or 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 hidden or 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
118 changes: 118 additions & 0 deletions
118
.gitbook/infra/validator-mainnet/canonical-chain-upgrade-v1.20.1.mdx
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,118 @@ | ||
| --- | ||
| title: Upgrade to v1.20.1 | ||
| description: How to upgrade Injective Mainnet Validator node to v1.20.1 | ||
| updatedAt: "2026-06-27" | ||
| --- | ||
|
|
||
| Thursday, July 2nd, 2026 | ||
|
|
||
| Following [IIP-665](https://injhub.com/proposal/665/) This indicates that the upgrade procedure should be performed on block number **172502000** | ||
|
|
||
| * [Summary](#summary) | ||
| * [Recovery](#recovery) | ||
| * [Upgrade Procedure](#upgrade-procedure) | ||
| * [Notes for Validators](#notes-for-validators) | ||
|
|
||
| ## Summary | ||
|
|
||
| The Injective Chain will undergo a scheduled enhancement upgrade at approximately **Thursday, July 2nd, 2026, 10:00 AM ET / 14:00 UTC**. | ||
|
|
||
| The following is a short summary of the upgrade steps: | ||
|
|
||
| 1. Vote and wait till the node panics at block height **172502000**. | ||
| 2. Backing up configs, data, and keys used for running the Injective Chain. | ||
| 3. Install the [v1.20.1](https://github.com/InjectiveFoundation/injective-core/releases/tag/v1.20.1-1782532109) binaries. | ||
| 4. Start your node with the new injectived binary to fulfill the upgrade. | ||
|
|
||
| Upgrade coordination and support for validators will be available on the `#validators` private channel of the [Injective Discord](https://discord.gg/injective). | ||
|
|
||
| The network upgrade can take the following potential pathways: | ||
|
|
||
| 1. **Happy path**:\ | ||
| Validators successfully upgrade the chain without purging the blockchain history, and all validators are up within 5-10 minutes of the upgrade. | ||
| 2. **Not-so-happy path**:\ | ||
| Validators have trouble upgrading to the latest Canonical chain. | ||
| 3. **Abort path**:\ | ||
| In the rare event that the team becomes aware of unnoticed critical issues, the Injective team will attempt to patch all the breaking states and provide another official binary within 36 hours.\ | ||
| If the chain is not successfully resumed within 36 hours, the upgrade will be announced as aborted on the `#validators` channel in [Injective's Discord](https://discord.gg/injective), and validators will need to resume running the chain without any updates or changes. | ||
|
|
||
| ## Recovery | ||
|
|
||
| Prior to exporting chain state, validators are encouraged to take a full data snapshot at the export height before proceeding. Snapshotting depends heavily on infrastructure, but generally this can be done by backing up the `.injectived` directory. | ||
|
|
||
| It is critically important to backup the `.injectived/data/priv_validator_state.json` file after stopping your injectived process. This file is updated every block as your validator participates in a consensus rounds. It is a critical file needed to prevent double-signing, in case the upgrade fails and the previous chain needs to be restarted. | ||
|
|
||
| In the event that the upgrade does not succeed, validators and operators must restore the snapshot and downgrade back to Injective Chain release [v1.20.0](https://github.com/InjectiveFoundation/injective-core/releases/tag/v1.20.0) and continue this earlier chain until next upgrade announcement. | ||
|
|
||
| ## Upgrade Procedure | ||
|
|
||
| ### Notes for Validators | ||
|
|
||
| You must remove the wasm cache before upgrading to the new version: | ||
|
|
||
| ```shell | ||
| rm -rf .injectived/wasm/wasm/cache/ | ||
| ``` | ||
|
|
||
| ### Breaking changes | ||
|
|
||
| <Warning> | ||
| Verify that you make the following changes as part of the upgrade process. | ||
| </Warning> | ||
|
|
||
| The Go build environment has changed. | ||
| In the previous release, the Go version was 1.26.2 (`go1.26.2`). | ||
| Update your Go version to 1.26.4 (`go1.26.4`). | ||
|
|
||
| ### Steps | ||
|
|
||
| 1. Verify you are currently running the correct version (`v1.20.0`) of `injectived`: | ||
|
|
||
| ```bash | ||
| $ injectived version | ||
| Version v1.20.0 (3ade14d) | ||
| Compiled at 20260530-0816 using Go go1.26.2 (amd64) | ||
| ``` | ||
|
|
||
| 2. Make a backup of your `.injectived` directory: | ||
|
|
||
| ```bash | ||
| cp -r ~/.injectived ./injectived-backup | ||
| ``` | ||
|
|
||
| 3. Download and install the `injective-chain` release for v1.20.1: | ||
|
|
||
| ```bash | ||
| wget https://github.com/InjectiveFoundation/injective-core/releases/download/v1.20.1-1782532109/linux-amd64.zip | ||
| unzip linux-amd64.zip | ||
| sudo mv injectived peggo /usr/bin | ||
| sudo mv libwasmvm.x86_64.so /usr/lib | ||
| ``` | ||
|
|
||
| 4. Verify you are currently running the correct version (v1.20.1) of `injectived` after downloading the v1.20.1 release: | ||
|
|
||
| ```bash | ||
| $ injectived version | ||
| Version v1.20.1 (eef179e) | ||
| Compiled at 20260627-0349 using Go go1.26.4 (amd64) | ||
| ``` | ||
|
|
||
| 5. Start `injectived`: | ||
|
|
||
| ```bash | ||
| injectived start | ||
| ``` | ||
|
|
||
| 6. Verify you are currently running the correct version (v1.20.1) of `peggo` after downloading the v1.20.1 release: | ||
|
|
||
| ```bash | ||
| $ peggo version | ||
| Version v1.20.1 (eef179e) | ||
| Compiled at 20260627-0356 using Go go1.26.4 (amd64) | ||
| ``` | ||
|
|
||
| 7. Start peggo: | ||
|
|
||
| ```bash | ||
| peggo orchestrator | ||
| ``` | ||
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.
wrong go version.
As part of "breaking changes" section we need also highlight the need to use 1.26.4