I’m not seeing any simple guides here on how to upgrade to 1.35.3 so I’m thinking I’ll help those out since I myself would have needed one. Would’ve saved me a alot of time.
Update your system
sudo apt-get update
sudo apt-get upgrade
sudo reboot
Stop your node
sudo systemctl stop cnode
Next, we will download, compile and install libsodium
.
cd $HOME/git
git clone https://github.com/input-output-hk/libsodium
cd libsodium
git checkout 66f017f1
./autogen.sh
./configure
make
sudo make install
Then we will add the following environment variables to your shell profile. E.G $HOME/.zshrc
or $HOME/.bashrc
depending on what shell application you are using. Add the following to the bottom of your shell profile/config file so that the compiler can be aware that libsodium
is installed on your system.
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
Once saved, we will then reload your shell profile to use the new variables. We can do that by typing source $HOME/.bashrc
or source $HOME/.zshrc
(depending on the shell application you use).
We need to install Secp256k1 what is required for 1.35.3 cardano-node version
cd $HOME/git
git clone https://github.com/bitcoin-core/secp256k1
cd secp256k1
git checkout ac83be33
./autogen.sh
./configure --enable-module-schnorrsig --enable-experimental
make
make check
sudo make install
Reboot
sudo reboot
Build your node
sudo systemctl stop cnode
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 1.35.3
echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" > cabal.project.local
$CNODE_HOME/scripts/cabal-build-all.sh
Start your node
sudo systemctl start cnode
You’ve now got Vasil!