Example

The current document is based on v0.3.5-patch. Documentation for the v0.4.0 upgrade will be prepared soon.

The purpose of this document is to inform the users on how to upgrade the chain to v0.3.5 using cosmovisor. All processes mentioned in this document must be conducted on the binary v0.3.3 preconfigured chain server.

Cosmovisor download & setup

1. Download Cosmovisor

go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest

2. Using the command below

sudo mv ~/go/bin/cosmovisor /usr/local/bin/cosmovisor

3. Setup environment

echo "# [FirmaChain] Setup Cosmovisor" >> ~/.profile
echo "export DAEMON_NAME=firmachaind" >> ~/.profile
echo "export DAEMON_HOME=$HOME/.firmachain" >> ~/.profile
echo "export DAEMON_ALLOW_DOWNLOAD_BINARIES=false" >> ~/.profile
echo "export DAEMON_RESTART_AFTER_UPGRADE=true" >> ~/.profile
echo "export UNSAFE_SKIP_BACKUP=false" >> ~/.profile
echo "export DAEMON_PREUPGRADE_MAX_RETRIES=0" >> ~/.profile

Once you've applied all environment variables, please reload the .profile file by running the command provided below.

If all environment variables have been registered successfully, you can input the command provided below to get an output on the registered variables.

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

※ In case of 1.0.0 version.

  • Please execute the command below. If you don't execute this command, you can't run cosmovisor.

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

In order to launch cosmovisor, please enter the command provided below.

Now, Cosmovisor is up and running.

Upgrade version binary download & setup

The user must already be running FirmaChain v0.3.3 and this process illustrates the necessary preparations to upgrade the chain to v0.3.5 using Software Proposal.

1. Folder Structure Setting

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

※ In case of 1.0.0 version.

  • Please execute the command below. If you don't execute this command, you can't run cosmovisor.

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

2. Prepare firmachaind binary

3. Copy and Paste the Binary File to the Cosmovisor Upgrade Folder Directory

Post-Upgrade

cosmovisor should be up and running using the upgraded file in v0.3.5/bin folder. Please use the command provided below to check the upgraded binary version.

Last updated