Skip to content

Choose a network

Height10,748,935 Chain halted Chain IDcrossfi-mainnet-1 Version Explorer (opens in a new tab)

CrossFi upgrade

Upgrade to v0.4.0 at height 2,905,000.

Upgrade height: 2,905,000 (opens in a new tab). Don't upgrade before the chain reaches it.

Manual upgrade

cd $HOME && rm -rf crossfi && \
git clone https://github.com/crossfichain/crossfi-node.git crossfi && cd crossfi && \
git fetch --tags && \
git checkout v0.4.0 && \
go build ./cmd/crossfid && \
sudo mv crossfid $(which crossfid) && \
sudo service crossfi restart && \
sudo journalctl -fu crossfi -o cat

Cosmovisor upgrade

Only if Cosmovisor runs your node: it switches to the new binary at the upgrade height by itself.

cd $HOME && rm -rf crossfi && \
git clone https://github.com/crossfichain/crossfi-node.git crossfi && cd crossfi && \
git fetch --tags && \
git checkout v0.4.0 && \
go build ./cmd/crossfid && \
mkdir -p $HOME/.crossfid/cosmovisor/upgrades/decon/bin && \
mv crossfid $HOME/.crossfid/cosmovisor/upgrades/decon/bin/

If the logs show UPGRADE "decon" NEEDED at height: 2905000, point Cosmovisor at the new folder:

cd "$HOME/.crossfid/cosmovisor" && ln -sfn "upgrades/decon" current && ls -l current

Cosmovisor then runs v0.4.0 as its current release and starts without the error.