Master Node Update Guide

A Guide to update the master nodes

This document is for Master Node Operators who have used the previous Master Node Full Guide and wish to update the version of their Master Node.

Note that this update guide is for individuals running their Master Node as a Service on linux. If you are using any screen's you will need kill the screens and go back to the Master Node Full Guide and follow it once more.

It is highly recommended running your Master Node as a Service due to the ease of updating.

Step 1: Load and Update your VPS.

If you are updating your VPS you would by now have a good understanding of how to log in to your server. If you don't check out how you prepared your server in this guide here.

Once we have logged in to our VPS we should update our package lists, the below command downloads the package lists from the repositories and "updates" them to get information on the newest versions of packages and their dependencies. It will do this for all repositories and PPAs.

sudo apt update

You will notice a bunch of package lists were downloaded, once this is complete run the below command to fetch new versions of any packages we currently have installed on the system.

sudo apt upgrade

You will be prompted to authorise the use of disk space, type y and enter to authorise.

If you are prompted during the upgrade that a new version of any file is available then click the up and down arrows until you are hovering over install the package maintainer’s version and click enter.

Alright, good to go. Our server is now up to date. On to the fun part!

Step 2: Download the new Beldex Binaries

To download the Linux binaries use the following command:

wget <link>

Where <link> is the download link of the latest linux release. To find the link go to https://github.com/beldex-coin/beldex/releases/latest, right click the latest linux release and click Copy Link Location.

Your command should look something like:

wget https://github.com/beldex-coin/beldex/releases/download/v3.1.3/beldex-linux-x64-v3.1.3.zip

To unzip the downloaded zip file run the following command (changing 3.1.3 to whatever version you downloaded above):

unzip beldex-linux-x64-v3.1.3.zip

You will see something like this:

Archive:  beldex-linux-x64-v3.1.3.zip
   creating: beldex-linux-x64-v3.1.3/
  inflating: beldex-linux-x64-v3.1.3/beldex-blockchain-ancestry  
  inflating: beldex-linux-x64-v3.1.3/beldex-blockchain-depth  
  inflating: beldex-linux-x64-v3.1.3/beldex-blockchain-export  
  inflating: beldex-linux-x64-v3.1.3/beldex-blockchain-import  
  inflating: beldex-linux-x64-v3.1.3/beldex-blockchain-mark-spent-outputs  
  inflating: beldex-linux-x64-v3.1.3/beldex-blockchain-stats  
  inflating: beldex-linux-x64-v3.1.3/beldex-blockchain-usage  
  inflating: beldex-linux-x64-v3.1.3/beldex-gen-trusted-multisig  
  inflating: beldex-linux-x64-v3.1.3/beldex-wallet-cli  
  inflating: beldex-linux-x64-v3.1.3/beldex-wallet-rpc  
  inflating: beldex-linux-x64-v3.1.3/beldexd  

Note that they are unzipped into the beldex-linux-x64-v3.1.3 folder; you can check they are unzipped by running the following to change into the folder and then listing the files:

cd beldex-linux-x64-v3.1.3
ls

We now want to replace our "symlink" to the new extracted beldex-linux-x64-v3.1.3 folder. If you are unfamiliar with what the "symlink" was doing previously have a look at the Master Node Full Guide where you first set it up.

Otherwise, run the following command.:

cd
ln -snf <folder_name> beldex

Where <folder_name> is the new folder we created when unziping the release. In this case if we were to update to v3.0.2 the commands we would use would be:

cd
ln -snf beldex-linux-x64-v3.1.3 beldex

This replaces our virtual beldex folder that pointed to an old folder to the beldex-linux-x64-v3.1.3 folder we created.

At this point it is wise to restart your system with the following command:

sudo reboot

Once the system has restarted it will reboot the new version of beldexd.

Log back in to your VPS and double check the new version of beldexd is running smoothly by running the following command:

sudo journalctl -u beldexd.service -af

NOTE: If you’re nervous about trusting the binaries or the download link, you should build it from source yourself. Instructions for that can be found in the README of https://github.com/beldex-project/beldex

Excellent! You have now updated your Master Node.

Last updated