Here’s my guide for compiling and upgrading to Cardano Node 1.340 for CNTOOLS users.
If you would prefer a more seamless approach to upgrading, please take a look at @Alexd1985 's script. It can be found here.
Lets begin!
Cardano Node 1.34.0
LaurenceIO released this 1 hour ago
· 17 commits to master since this release
Node version 1.34 brings a number of important new features that will benefit stake pool operators and other users, including
- a new tracing mechanism
- a new command to query the local mempool
- a new command to provide stake pool operators with their leadership schedule
- a new command to check the validity of stake pool operational certificates (including verifying the KES period)
- support for CBOR encoding in transaction build commands,
- an option to output transaction bodies in ledger-compliant CDDL format,
- an option to calculate the cost of executing a Plutus script,
- incremental transaction signing.
It also includes a number of stability improvements, plus improvements to the performance of Plutus scripts.
Breaking Changes
To avoid increased synchronisation times, we recommended that Windows users DO NOT upgrade to node version 1.34.0. We recommend instead that they continue to run node 1.33.0. Future releases will address this issue which is specific to Windows.
Technical Specification
Minimum System Requirements
- An Intel or AMD x86 processor with two or more cores, at 1.6GHz or faster (2GHz or faster for a stake pool or relay)
- 12GB of RAM
- 50GB of free storage
Prepare for Upgrade 1.34.0
- If available, create snapshots of your servers
- Upgrade a relay first!
- Update your server/OS
sudo apt update && sudo apt upgrade -y
sudo reboot
- Run prereqs.sh
cd ~/tmp
./prereqs.sh
- Update Cabal
cabal update
Building the Node 1.34.0
- Stop your node
sudo systemctl stop cnode
- Build the Node
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.34.0
echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" > cabal.project.local
$CNODE_HOME/scripts/cabal-build-all.sh
This takes about 45min, and the end should look like:
Copying unit to /home/usr/.cabal/bin/
Copying trace-dispatcher-examples to /home/usr/.cabal/bin/
Copying cardano-tracer to /home/usr/.cabal/bin/
Copying cardano-submit-api to /home/usr/.cabal/bin/
Copying cardano-cli to /home/usr/.cabal/bin/
Copying cardano-node to /home/usr/.cabal/bin/
Copying tx-generator to /home/usr/.cabal/bin/
- Check your versions
cardano-node --version
cardano-node 1.34.0 - linux-x86_64 - ghc-8.10
git rev c23d5d319cd3276575c6ac32458516232e8d2c48
cardano-cli --version
cardano-cli 1.34.0 - linux-x86_64 - ghc-8.10
git rev c23d5d319cd3276575c6ac32458516232e8d2c48
Start the Node
- Restart the Node
sudo systemctl restart cnode
Afterthoughts
Be sure to update you version of gLiveView.sh to v1.26.3 or later, as previous versions of gLiveView will not load.
Thanks for reading along!