Update requires updating to the latest node binary.
For a detailed guide, please choose the proper instruction according to the method used to install the node:
- Automated script (a.k.a. nodes installed with this guide)
- Docker
- Manual
Run the following command on your server:
curl -sSLO https://raw.githubusercontent.com/liberland/liberland_substrate/main/substrate/scripts/install/install.sh
bash install.sh
The installer will detect existing install and perform the required updates without wiping any data or keys. If asked about which network to use - make sure you choose the correct one.
You need to pull the latest image and recreate your container.
If you followed the Complete example of running a validator on mainnet guide, follow these steps:
- Pull the latest image:
docker pull liberland/blockchain-node:latest
- Stop and remove the old container. If you followed the guide, it won't remove any data or keys:
docker stop liberland && docker rm liberland
- Recreate the container:
docker run --name liberland -d --network=host --restart always -v $HOME/liberland_data:/data liberland/blockchain-node:latest -d /data --chain mainnet --validator
If you've installed manually, you need to:
- Download latest node binary (
linux_x86_build
) from the releases page - Stop your node
- Replace the binary you're using with the downloaded one
- Restart your node