Update

These instructions are for full nodes that are running on previous versions of RealioNetwork and need to update to the latest version of the RealioNetwork software.

Manual upgrade

The following instructions explain how to manually upgrade the node:

  1. Stop your node

 sudo systemctl stop realio-networkd
  1. Backup your validator files:

cp ~/.realio-network/config/priv_validator_key.json ~/priv_validator_key.json
cp ~/.realio-network/config/node_key.json ~/node_key.json
cp ~/.realio-network/data/priv_validator_state.json ~/priv_validator_state.json
  1. Go into the directory in which you have installed the Realio Network repo. If you have followed the installation instructions and didn't change the path, it should be /home/$USER/realio-network:

cd <installation-path> 

# e.g.
# cd ~/realio-network
  1. Now, update the realio-networkd software:

git fetch --tags
git checkout tags/$(git describe --tags `git rev-list --tags --max-count=1`)
make build && make install

SELECT THE VERSION YOU NEED

The above commands checks out the latest release that has been tagged on our repository. If you wish to check out a specific version instead, use the following commands:

  1. List all the tags:

    git tags --list
  2. Checkout the tag you want:

    git checkout tags/<tag>
    # Example: git checkout tags/v4.1.0

NOTE

If you have issues at this step, please check that you have the latest stable version of Go installed.

Cosmovisor

CAUTION

If your node is using cosmovisor, and you've followed the above procedure to manually upgrade, don't forget to move the upgraded binary inside the cosmovisor folder by typing the following command:

cp build/realio-networkd ~/.realio-network/cosmovisor/current/bin/realio-networkd

Then check if the version of cosmovisor matches with the latest realio-networkd version by running:

cosmovisor version

Automatic upgrade (with Cosmovisor)

Below it is explained how to prepare your node to be able to automatically upgrade itself.

Cosmovisor handles the automatic upgrades that happens after the upgrade governance proposal passes. If during an upgrade your node doesn't have enough space left or if the cosmovisor backup it is taking too much time, you can do the following:

  1. Open your realio-networkd editor:

  2. Add the following line after the last Environment line:

    Environment="UNSAFE_SKIP_BACKUP=true"

Last updated