Upgrade

Prepare for and the upcomming chain upgrade using Cosmovisor.

Network name: DyDx | Chain ID: dydx-testnet-3 | Latest version: v0.2.2 | Custom Port: 238

Since we are using Cosmovisor, it makes it very easy to prepare for upcoming upgrade. You just have to build new binaries and move it into cosmovisor upgrades directory.

Download and build upgrade binaries

# Clone project repository
cd $HOME
rm -rf dydx
git clone https://github.com/dydxprotocol/v4-chain/ dydx
cd dydx
git checkout v0.2.2

# Build binaries
make install

# Prepare binaries for Cosmovisor
mkdir -p $HOME/.dydxprotocol/cosmovisor/current/bin/
mv ~/go/bin/dydxprotocold $HOME/.dydxprotocol/cosmovisor/current/bin/

Restart Cosmovisor

Because this is a hard fork, we'll need to restart cosmovisor to take the new upgrade.

sudo systemctl restart dydxprotocold

Thats it! Now when upgrade block height is reached, Cosmovisor will handle it automatically!

Last updated