Cosmovisor Integration - Binaries

For more information on past upgrades and instructions, refer to Upgrade Versions.

You may refer to this Countdown Timer which will countdown the time till the upgrade height.

cosmovisor is a small process manager for Cosmos SDK application binaries that monitors the governance module for incoming chain upgrade proposals. If it sees a proposal that gets approved, cosmovisor can automatically download the new binary, stop the current binary, switch from the old binary to the new one, and finally restart the node with the new binary.

Go 1.23+ or later is required for the Pundi AIFX. Install go by following the official docs.

1. Install Cosmovisor

go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.6.0

Set up the Cosmovisor environment variables. Creates the folder structure required for using cosmovisor.

git clone https://github.com/PundiAI/fx-core.git
cd fx-core

git checkout release/v8.5.x

make build
export DAEMON_NAME=fxcored DAEMON_HOME=$HOME/.fxcore DAEMON_POLL_INTERVAL=1s UNSAFE_SKIP_BACKUP=true
cosmovisor init ./build/bin/fxcored
mkdir -p $HOME/.fxcore/cosmovisor/upgrades/v8.5.x/bin/
cp ./build/bin/fxcored $HOME/.fxcore/cosmovisor/upgrades/v8.5.x/bin/
cosmovisor version

2. Install the fxcore release

To check that you did this correctly, ensure your versions of cosmovisor are the same:

In addition, we have added the feature of the doctor command in the v4 version, which is used to check whether the environment you are currently running is correct. if you see the warning, please contact our technical support.

If the node has not been started, the output of the doctor command will shown "Blockchain Data" section is unavailable.

3. Start your node

To keep the process always running. If you're on linux, you can do this by creating a service.

⚠️Before this, please make sure you have stopped fxcored and deleted the old fxcored.service file, if not, please execute the following command:

Reload, enable and restart the node with daemon service file

Troubleshooting

Checking working environment

Accessing logs

Last updated