v4.2.1 Upgrade Instructions

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

You may refer to this Countdown Timerarrow-up-right 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.

circle-info

Go 1.19+ or later is required for the Pundi AIFX. Install go by following the official docsarrow-up-right.

circle-exclamation

1. Install Cosmovisor

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

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

circle-exclamation
git clone https://github.com/functionx/fx-core.git
cd fx-core
git checkout release/v3.1.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/fxv3/bin/
cp ./build/bin/fxcored $HOME/.fxcore/cosmovisor/upgrades/fxv3/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.

circle-info

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.

circle-info

⚠️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