Cosmovisor
Installing Cosmovisor
The first step is to download Cosmovisor as an executable using their documentation. Below is the Dockerized way we do it.
Environment Variables
You will then need to set the following environment variables. The DAEMON_HOME will be the home of your config files.
Initializing Executables
Then, run the following to setup your Cosmovisor directory. The executable should be named bitbadgeschaind (if not, please rename).
This will create the necessary folders and copy the executable into the DAEMON_HOME/cosmovisor/genesis/bin.
IMPORTANT: Depending on your sync method (explained later), you will need to download all relevant executables. If you are syncing from genesis, you will need all executables to be able to sync to the current state. If you are syncing from a later time, you will only need the binaries used after that time. See Adding Upgrades below. You must repeat this process for all such executables.
Adding Upgrades
For a given upgrade, it will have a new binary and a <upgrade-name>. <upgrade-name> is the name used in the x/upgrade module when proposing a new software upgrade.
Depending on your version of cosmovisor, you may be able to run the following. Again, make sure the binary name is bitbadgeschaind.
Or, to manually upgrade, do the following.
Download the new binary and name it bitbadgeschaind. Do this in a separate folder to not interfere with anything currently running.
Create the DAEMON_HOME/cosmovisor/upgrades/<upgrade-name> and DAEMON_HOME/cosmovisor/upgrades/<upgrade-name>/bin directory.
Copy the new upgrade executable to the folder (keeping its name as bitbadgeschaind).
Last updated