How to Safely Upgrade your Helium Validator

Parley Labs, Inc.
2 min readMay 11, 2022

--

As a Helium Validator operatore, we have the responsibility to #ThePeoplesNetwork to protect our systems and keep them up to date. We play an important role in the security and stability of the network as it grows. This guide is to help other operators, new and old, with a quick reference to update their validators when using Docker.

You’ll want to keep your validator up to date with the latest stable versions to continue earning rewards and participate in validating the blockchain. If you’re running the validator in Docker, you’ll want to make sure to run the following steps:

  1. Check if you’re elected to a consensus group
  2. If not elected, we can upgrade safely
  3. Shut down and remove the container
  4. Download the latest version (you can see the versions here: https://quay.io/repository/team-helium/validator?tab=tags). If you want to choose a specific version, you’ll need to use the version number instead of the ‘latest-validator-amd64’ tag.
  5. Clean up and remove old versions using the ‘prune’ function
  6. Restart the docker
  7. Check your version
  8. Check it’s all up and running

Here is the commands you’ll use to execute the steps above. This assumes you named your container ‘validator’.

========== use CODE tag for this ============

miner info in_consensus

docker stop validator && docker rm validator

docker pull quay.io/team-helium/validator:latest-validator-amd64

docker image prune -f

docker run -d — restart always — publish 8080:8080/tcp — publish 2154:2154/tcp — name validator — mount type=bind,source=$HOME/validator_data,target=/var/data quay.io/team-helium/validator:latest-validator-amd64

miner versions

miner info summary

========== use CODE tag for this ============

References:

--

--

Parley Labs, Inc.
Parley Labs, Inc.

Written by Parley Labs, Inc.

Based out of Southern California, Parley Labs is focused on building, testing and validating new technology related to autonomous and distributed systems.

No responses yet