Hongbai-testnet v3 upgrade

Assuming you have already set up a node on the Hongbai Testnet, you can upgrade to the binary by following these steps:

your cosmovisor directory should be located at ~/.mantrachain/cosmovisor and displayed as follows:

cosmovisor/
├── current -> ~/.mantrachain/cosmovisor/genesis
└── genesis
    └── bin
        └── mantrachaind

Create upgrade directory and download the binary:

upgrade_version="3.0.0"
mkdir -p ~/.mantrachain/cosmovisor/upgrades/v$upgrade_version/bin

if [ "$(uname -m)" == "aarch64" ]; then export ARCH="arm64"; else export ARCH="amd64"; fi
wget https://github.com/MANTRA-Finance/public/releases/download/v$upgrade_version/mantrachaind-$upgrade_version-linux-$ARCH.tar.gz

# extract the binary to the upgrade directory
tar -xvf mantrachaind-$upgrade_version-linux-$ARCH.tar.gz -C ~/.mantrachain/cosmovisor/upgrades/v$upgrade_version/bin

Cosmovisor will automatically switch to the new binary when the upgrade height is reached.

Option 2: Upgrade manually

The node should panic and stop when the upgrade height is reached. You can manually upgrade the binary by following these steps:

Download the binary:

upgrade_version="3.0.0"
if [ "$(uname -m)" == "aarch64" ]; then export ARCH="arm64"; else export ARCH="amd64"; fi
wget https://github.com/MANTRA-Finance/public/releases/download/v$upgrade_version/mantrachaind-$upgrade_version-linux-$ARCH.tar.gz

# extract the binary
tar -xvf mantrachaind-$upgrade_version-linux-$ARCH.tar.gz

Replace the old binary with the new one and restart the node

Last updated