Update node

Node update guide

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 installs

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.

Docker installs

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:

  1. Pull the latest image:

    docker pull liberland/blockchain-node:latest
  2. 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
  3. 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

Manual installs

If you've installed manually, you need to:

  1. Download latest node binary (linux_x86_build) from the releases page

  2. Stop your node

  3. Replace the binary you're using with the downloaded one

  4. Restart your node

Last updated