Skip to main content

Kopi Upgrade

Upgrade to v21

Manual upgrade

Loading data...
cd $HOME && rm -rf kopi && \
git clone https://github.com/kopi-money/kopi.git kopi && cd kopi && \
git fetch --tags && \
git checkout v21 && \
make build && \
sudo mv bin/kopid $(which kopid) && \
sudo service kopi restart && \
sudo journalctl -fu kopi -o cat

Cosmovisor upgrade

Note

Choose this method only if you're using Cosmovisor to manage binaries and automate chain upgrades.

cd $HOME && rm -rf kopi && \
git clone https://github.com/kopi-money/kopi.git kopi && cd kopi && \
git fetch --tags && \
git checkout v21 && \
make build && \
mkdir -p $HOME/.kopid/cosmovisor/upgrades/v21/bin && \
mv bin/kopid $HOME/.kopid/cosmovisor/upgrades/v21/bin/

Note: if you see this in your node’s logs: UPGRADE "v21" NEEDED at height: 11636500 then force Cosmovisor to point at the new upgrade directory:

cd "$HOME/.kopid/cosmovisor" && ln -sfn "upgrades/v21" current && ls -l current

This tells Cosmovisor to use the v21 binary as the “current” release so it won’t error on startup.