Cardano Node 1.32.1
LaurenceIO released this 5 hours ago
· 18 commits to master since this release
Cardano Node version 1.32.1 introduces a number of improvements and enhancements to improve the usability of the Cardano node. Native asset name rendering has been changed in order to eliminate problems caused by non-printing characters, CLI commands now default to the Alonzo era, and default values have been added to simplify startup where a genesis file is not supplied (eg in test or standalone settings). Additional logging is available during node startup, enabling progress to be tracked more easily, and statistics counting has been disabled in order to reduce noise. Limits have been added to mini protocols. There is better rendering of some trace messages.
Documentation has also been improved in various areas.
This version also adds experimental support for peer-to-peer network. It is unverified and unsupported , and hence not recommended to be enabled in production.
Breaking Changes
- Asset Name Format Change. Note that asset names are now output in hex format when querying UTxO entries. Any user who is relying on asset names to be represented as ASCII text will need to change their tooling. As a temporary transitional solution, it is possible to use Cardano-cli version 1.31 with node version 1.32.1 if desired, or to continue to use node version 1.31. This will not be possible following the next hard fork (which is expected in early 2022).
- CLI default era change. CLI commands now default to the Alonzo era (previously Mary era). Tooling may need to be revised if it was relying on the default.
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
- 20GB of free storage
!!! if your servers have only 8G of RAM you can configure the SWAP file
free -m
next command will alocate 3G for SWAP file (you can configure what value you want - just replace 3G with your needs)
sudo fallocate -l 3G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
now to make it permanently type
sudo nano /etc/fstab
and add to the end, as a new line
/swapfile swap swap defaults 0 0
save the file (Ctrl + x then Y then ENTER)
check if the configuration was successfully
free -m
How to update to 1.32.1
before to start it’s better also to update the server/OS
sudo apt-get update
sudo apt-get upgrade
sudo reboot
- perform a snapshot for server (if u have this option offered by your provider) before to start the update
- update the Relays first (one by one)
BUILDING THE NODE
- stop the node :
sudo systemctl stop cnode
update cabal
cabal update
- 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.32.1
echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" > cabal.project.local
$CNODE_HOME/scripts/cabal-build-all.sh
at the end you should see:
Copying unit to /home/user/.cabal/bin/
Copying cardano-topology to /home/user/.cabal/bin/
Copying trace-dispatcher-examples to /home/user/.cabal/bin/
Copying locli to /home/user/.cabal/bin/
Copying cardano-submit-api to /home/user/.cabal/bin/
Copying cardano-cli to /home/user/.cabal/bin/
Copying plutus-example to /home/user/.cabal/bin/
Copying create-script-context to /home/user/.cabal/bin/
Copying cardano-node to /home/user/.cabal/bin/
Copying cardano-node-chairman to /home/user/.cabal/bin/
Copying tx-generator to /home/user/.cabal/bin/
:~/git/cardano-node$
this time it took ~35 minutes
START THE NODE
sudo systemctl start cnode
check the status
438734:/opt/cardano/cnode/scripts$ sudo systemctl status cnode
● cnode.service - Cardano Node
Loaded: loaded (/etc/systemd/system/cnode.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-12-13 22:54:46 CET; 8min ago
Process: 24421 ExecStop=/bin/bash -l -c exec kill -2 $(ps -ef | grep [c]ardano-node.*./opt/cardano/cnode/ | tr -s ' ' | cut -d ' ' -f2) &>/dev/null (code=exited, status=0/SUCCESS)
Main PID: 33236 (bash)
Tasks: 17 (limit: 4915)
CGroup: /system.slice/cnode.service
├─33236 bash /opt/cardano/cnode/scripts/cnode.sh
└─33342 /home/user.cabal/bin/cardano-node run --topology /opt/cardano/cnode/files/topology.json --config /opt/cardano/cnode/files/config.json --database-path /opt/cardano/cn
Dec 13 22:54:46 vmi438734.contaboserver.net systemd[1]: Started Cardano Node.
Dec 13 22:54:47 vmi438734.contaboserver.net cnode[33236]: WARN: A prior running Cardano node was not cleanly shutdown, socket file still exists. Cleaning up.
Dec 13 22:54:48 vmi438734.contaboserver.net cnode[33236]: Node configuration: NodeConfiguration {ncNodeIPv4Addr = Just 0.0.0.0, ncNodeIPv6Addr = Nothing, ncNodePortNumber = Just 6000, ncCon
lines 1-13/13 (END)
**check the revision number, should be 4f65fb9a27aa7e3a1873ab4211e412af780a3648**
438734:~/git/cardano-node$ cardano-node --version
cardano-node 1.32.1 - linux-x86_64 - ghc-8.10
git rev 4f65fb9a27aa7e3a1873ab4211e412af780a3648
438734:~/git/cardano-node$ cardano-cli --version
cardano-cli 1.32.1 - linux-x86_64 - ghc-8.10
git rev 4f65fb9a27aa7e3a1873ab4211e412af780a3648
438734:~/git/cardano-node$

Thank you