Thanks to @Alexd1985 for his upgrade note for CNTools users.
Here is a quick how-to note for CoinCashew fellas to upgrade to 1.29.0.
This 1.29.0 release is an important update to the node that provides the functionality that is needed following the Alonzo hard fork.
All users, including stake pool operators, must upgrade to this version (or a later version) of the node.
IMPORTANT: As usual, don’t forget to backup your nodes before starting these updates.
STEP 1 - Clone the latest source and checkout the branch 1.29.0
cd $HOME/git
git clone https://github.com/input-output-hk/cardano-node.git cardano-node2
cd cardano-node2/
git fetch --all --recurse-submodules --tags
git checkout tags/1.29.0
STEP 2 - Make sure to have at least ghc 8.10.4 and cabal 3.4.0.0
ghcup upgrade
ghcup install ghc 8.10.4
ghcup set ghc 8.10.4
ghc --version
ghcup install cabal 3.4.0.0
ghcup set cabal 3.4.0.0
cabal --version
cabal update
STEP 3 - Configure & Compile
cd $HOME/git/cardano-node2
cabal configure -O0 -w ghc-8.10.4
echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" > cabal.project.local
cabal build cardano-node cardano-cli
Now make sure that your version of your freshly built cardano-cli and cardano-node is correct (1.29.0):
$(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
STEP 4 - Download the official mainnet-alonzo-genesis.json file and modify the mainnet-config.json file
cd $NODE_HOME
wget https://hydra.iohk.io/job/Cardano/iohk-nix/cardano-deployment/latest-finished/download/1/mainnet-alonzo-genesis.json
chmod 755 mainnet-alonzo-genesis.json
Edit the mainnet-config.json
nano mainnet-config.json
and add these 2 lines in it
"AlonzoGenesisFile": "mainnet-alonzo-genesis.json",
"AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874",
for example:
{
"AlonzoGenesisFile": "mainnet-alonzo-genesis.json",
"AlonzoGenesisHash": "7e94a15f55d1e82d10f09203fa1d40f8eede58fd8066542cf6566008068ed874",
"ApplicationName": "cardano-sl",
"ApplicationVersion": 1,
"ByronGenesisFile": "mainnet-byron-genesis.json",
"ByronGenesisHash": "5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb",
"LastKnownBlockVersion-Alt": 0,
"LastKnownBlockVersion-Major": 3,
"LastKnownBlockVersion-Minor": 0,
"MaxKnownMajorProtocolVersion": 2,
"Protocol": "Cardano",
"RequiresNetworkMagic": "RequiresNoMagic",
"ShelleyGenesisFile": "mainnet-shelley-genesis.json",
"ShelleyGenesisHash": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81",
[...]
STEP 5 - Shut your node down, replace your old binaries with the new ones in your bin folder and start your node again
Stop the node
sudo systemctl stop cardano-node
Replace old binaries with the new ones
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
Double check the version
cardano-node version
cardano-cli version
Start your node again
sudo systemctl start cardano-node
Check the logs:
journalctl --unit=cardano-node --follow
Now clean your mess
cd $HOME/git/
mv cardano-node cardano-node-old
mv cardano-node2 cardano-node
Alonzo is almost here guys
Cheers!