Static Build
This guide follows the same setup as our Pi-Node guide and image so you may need to adjust sections based on your node's environment and setup.
Overview 🗒
- Download Cardano Node Static build & configuration file
- Extract the file's content
- Check if you already have Cardano Node service running
- Safely shutdown your Cardano node if it is running
- Replace the old binaries with the new cardano-node and cardano-cli
- Check cardano-node and cli version is updated to the current version
- Replace old configuration files with new ones (if needed)
- Restart your Cardano Node
- Check that node has started properly
Download the cardano-node & cli
Static binaries and Cardano node configuration files are provided by [ZW3RK] pool🙏 and can be found at our Github repository.
wget -O 8_1_2.zip https://github.com/armada-alliance/cardano-node-binaries/blob/main/static-binaries/8_1_2.zip?raw=true
Extract the content from the zip file.
unzip 8_1_2.zip
Check if cardano-node is running already
We need to make sure we do not have a cardano-node already running. If we do we must shut it down before proceeding.
You can check if you have a cardano-node process already running a few ways like using htop
or by checking your systemd service.
If you have been following our Pi-Node guide you can check your cardano-node status and stop it using the following commands.
cardano-service status
cardano-service stop
If you use Linux's htop
service just check for a processing running starting with cardano-node run
and use SIGINT
to terminate the process.
Replace the old binaries and config files with the new ones
If you are using the Pi-Node guide and your cardano-node & cli in ~/.local/bin
mv cardano-node/* ~/.local/bin
Check your cardano-node version
cardano-node --version
Output:
cardano-node 8.9.3 - linux-aarch64 - ghc-8.10
git rev 0000000000000000000000000000000000000000
Check your cardano-cli version
cardano-cli --version
Output:
cardano-cli 8.9.3 - linux-aarch64 - ghc-8.10
git rev 0000000000000000000000000000000000000000
Download & Replace the Cardano node configuration files (Optional)
This step is not needed every time you update your node, typically you only need to update/replace config files after hard fork events when moving into new eras of the Cardano blockchain.
- Mainnet
- Pre-Production
- Preview
cd $NODE_FILES
wget https://book.world.dev.cardano.org/environments/mainnet/config.json
wget https://book.world.dev.cardano.org/environments/mainnet/byron-genesis.json
wget https://book.world.dev.cardano.org/environments/mainnet/shelley-genesis.json
wget https://book.world.dev.cardano.org/environments/mainnet/alonzo-genesis.json
wget https://book.world.dev.cardano.org/environments/mainnet/topology.json
wget https://book.world.dev.cardano.org/environments/mainnet/conway-genesis.json
cd $NODE_FILES
wget https://book.world.dev.cardano.org/environments/preprod/config.json
wget https://book.world.dev.cardano.org/environments/preprod/byron-genesis.json
wget https://book.world.dev.cardano.org/environments/preprod/shelley-genesis.json
wget https://book.world.dev.cardano.org/environments/preprod/alonzo-genesis.json
wget https://book.world.dev.cardano.org/environments/preprod/topology.json
wget https://book.world.dev.cardano.org/environments/preprod/conway-genesis.json
cd $NODE_FILES
wget https://book.world.dev.cardano.org/environments/preview/config.json
wget https://book.world.dev.cardano.org/environments/preview/byron-genesis.json
wget https://book.world.dev.cardano.org/environments/preview/shelley-genesis.json
wget https://book.world.dev.cardano.org/environments/preview/alonzo-genesis.json
wget https://book.world.dev.cardano.org/environments/preview/topology.json
wget https://book.world.dev.cardano.org/environments/preview/conway-genesis.json
Download Database snapshot
Go to cnsapshots if you want to download a Snapshot of the Database for whatever network you need. This will greatly reduce time to sync the chain for your node if using Mainnet or Preproduction networks.
mv /path/to/downloaded/snapshot/db $NODE_HOME
Restart the Cardano Node
Now we just need to restart our cardano-node service if you are using our Pi-Node guide use this command
cardano-service start
Wait a few seconds or so then check the status
cardano-service status