Update Node and CLI to 8.0.0

This guide will take you through the steps to update your node and CLI to 8.0.0. This guide is for the coincashew method users. Please double check file paths and file name and adjust as needed.

Please note after updating it will take up to 10 hours maybe more to sync block replay.

Step 1 - Download and install the new version of libsodium

git clone https://github.com/input-output-hk/libsodium
cd libsodium
git checkout dbb48cc
./autogen.sh
./configure
make
make check
sudo make install

Step 2 - GHC and Cabal Check

Make sure you are using ghc 8.10.7 and cabal 3.6.2.0. If already installed you can skip this step.

ghcup upgrade
ghcup install ghc 8.10.7
ghcup set ghc 8.10.7
ghcup install cabal 3.6.2.0
ghcup set cabal 3.6.2.0

ghc --version
cabal --version

Step 3 - Download latest cardano-node git and checkout latest branch

cd $HOME/git

git clone https://github.com/input-output-hk/cardano-node.git cardano-node2

cd cardano-node2/

cabal update

git fetch --all --recurse-submodules --tags

git checkout tags/8.0.0

Step 4 - Build the node

If you have tmux, it is recommended to open tmux by typing tmux this will allow to run these commands to build the node without terminal timing out.

cd $HOME/git/cardano-node2

cabal configure -O0 -w ghc-8.10.7

echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" >> cabal.project.local
cabal build cardano-node cardano-cli

Step 5 - Check cardano-cli and cardano-node that the build was successful

$(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-cli") version
$(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-node") version

if 8.0.0 - and you were using tmux, close tmux by typing exit

Step 6 - Backup your configuration files

Now is a good time to backup your configuration files before we adjust them. Please backup with your preferred method.

Step 7 - Download the new mainnet conway genesis file

cd $NODE_HOME
wget https://book.world.dev.cardano.org/environments/mainnet/conway-genesis.json
mv conway-genesis.json mainnet-conway-genesis.json

Step 8 - Update mainnet-conf json

cd $NODE_HOME
sudo nano mainnet-config.json

Add the following lines after "ByronGenesisHash" line:

  "ConwayGenesisFile": "mainnet-conway-genesis.json",
  "ConwayGenesisHash": "f28f1c1280ea0d32f8cd3143e268650d6c1a8e221522ce4a7d20d62fc09783e1",

Step 9 - Shut down the node and move the binaries to your bin

sudo systemctl stop cardano-node
sudo cp $(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-cli") /usr/local/bin/cardano-cli
sudo cp $(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-node") /usr/local/bin/cardano-node

Step 10 - Check that successful version upgrades then start back up Cardano node

cardano-node version
cardano-cli version

If 8.0.0 move to next step

Step 11 - Update and restart your instance

sudo apt-get update && sudo apt-get upgrade -y && sudo reboot

Step 12 - Clean up

cd $HOME/git/

rm -rf cardano-node-old

mv cardano-node cardano-node-old

mv cardano-node2 cardano-node

Additional Steps

Copy the cardano-cli binaries to your air gap machine. You can copy from your /usr/local/bin or from the new build to a USB drive

Congratulations you did it!

Contributors

Thanks to the following pools for helping to put together these guides. Please consider delegating to their pools to support them. Are you a pool? Consider buying them a coffee

Last updated