Kopi Upgrade
Upgrade to v22
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 v22 && \
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 v22 && \
make build && \
mkdir -p $HOME/.kopid/cosmovisor/upgrades/v22/bin && \
mv bin/kopid $HOME/.kopid/cosmovisor/upgrades/v22/bin/
Note: if you see this in your node’s logs:
UPGRADE "v22" NEEDED at height: 15516000
then force Cosmovisor to point at the new upgrade directory:
cd "$HOME/.kopid/cosmovisor" && ln -sfn "upgrades/v22" current && ls -l current
This tells Cosmovisor to use the v22
binary as the “current” release so it won’t error on startup.