This document describes the upgrade procedure of aDocumentation Index
Fetch the complete documentation index at: https://cosmos-docs-evm-upgrade-7.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
gaiad full-node to a new version.
Cosmovisor
The Cosmos SDK provides a convenient process manager that wraps around thegaiad binary and can automatically swap in new binaries upon a successful governance upgrade proposal. Cosmovisor is entirely optional but recommended. More information can be found in cosmos.network docs and cosmos-sdk/cosmovisor/readme.
Setup
To get started with Cosmovisor first download itgaiad can start by running
Preparing an Upgrade
Cosmovisor will continually poll the$DAEMON_HOME/data/upgrade-info.json for new upgrade instructions. When an upgrade is ready, node operators can download the new binary and place it under $DAEMON_HOME/cosmovisor/upgrades/<name>/bin where <name> is the URI-encoded name of the upgrade as specified in the upgrade module plan.
It is possible to have Cosmovisor automatically download the new binary. To do this set the following environment variable.
Manual Software Upgrade
First, stop your instance ofgaiad. Next, upgrade the software:
Upgrade Genesis File
To upgrade the genesis file, you can either fetch it from a trusted source or export it locally.Fetching from a Trusted Source
If you are joining the mainnet, fetch the genesis from the mainnet repo. If you are joining a public testnet, fetch the genesis from the appropriate testnet in the testnet repo. Otherwise, fetch it from your trusted source. Save the new genesis asnew_genesis.json. Then replace the old genesis.json with new_genesis.json
Exporting State to a New Genesis Locally
If you were running a node in the previous version of the network and want to build your new genesis locally from a state of this previous network, use the following command:<export-height> and turns it into a new genesis file that can be used to start a new network.
Then, replace the old genesis.json with new_genesis.json.
Account type changed, a script should query encoded account from the account store, unmarshal them, update their type, re-marshal and re-store them. You can find an example of such script here.
Reset Data
::: danger IMPORTANT Make sure that every node has a uniquepriv_validator.json. Do not copy the priv_validator.json from an old node to multiple new nodes. Running two nodes with the same priv_validator.json will cause you to get slashed due to double signing!
First, remove the outdated files and reset the data. If you are running a validator node, make sure you understand what you are doing before resetting.
priv_validator.json and config.toml. If you had any sentry nodes or full nodes setup before, your node will still try to connect to them, but may fail if they haven’t also been upgraded.