Skip to main content

Bitway Upgrade

Upgrade to v2.0.1

Manual upgrade

Loading data...
cd $HOME && rm -rf bitway && \
git clone https://github.com/bitwaylabs/bitway.git bitway && cd bitway && \
git fetch --tags && \
git checkout v2.0.1 && \
make build && \
sudo mv build/bitwayd $(which bitwayd) && \
sudo service bitway restart && \
sudo journalctl -fu bitway -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 bitway && \
git clone https://github.com/bitwaylabs/bitway.git bitway && cd bitway && \
git fetch --tags && \
git checkout v2.0.1 && \
make build && \
mkdir -p $HOME/.bitway/cosmovisor/upgrades/v2.0.1/bin && \
mv build/bitwayd $HOME/.bitway/cosmovisor/upgrades/v2.0.1/bin/

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

cd "$HOME/.bitway/cosmovisor" && ln -sfn "upgrades/v2.0.1" current && ls -l current

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