HOW TO: Upgrade from 1.35.5 to 8.1.1 for CNTOOLS users

Update your system

sudo apt-get update
sudo apt-get upgrade

sudo reboot

Install new branch of libsodium

sudo systemctl stop cnode

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

Source your bashrc file

export PATH="~/.local/bin:$PATH"
source .bashrc

Build the node with 8.1.1

cd ~/git
sudo rm -R cardano-node
git clone https://github.com/input-output-hk/cardano-node
cd cardano-node

git fetch --tags --all
git checkout 8.1.1

echo -e "package cardano-crypto-praos\n  flags: -external-libsodium-vrf" > cabal.project.local
$CNODE_HOME/scripts/cabal-build-all.sh

Change your config.json

cd $CNODE_HOME/files
nano config.json
Add this line: “ConwayGenesisFile”: “/opt/cardano/cnode/files/conway-genesis.json”,
Ctrl+x
Y

Download conway-genesis.json and put it in cd $CNODE_HOME/files

wget https://github.com/input-output-hk/cardano-node/blob/master/configuration/cardano/mainnet-conway-genesis.json

Rename it to conway-genesis.json

Reboot

sudo reboot

Check your versions

cardano-node --version
cardano-cli --version

Now you have 8.1.1!

4 Likes

great work! Thank you for this

updated to 8.1.2 just swapped 8.1.1 > 8.1.2

any plans for a guide for 8.7.2 ?