Hello dear community 👋
I am happy to share an update of the yourdlt tool that will let you update your voting keys.
- Remove the yourdlt software We recommend that you stop your node and remove any previous installation of yourdlt with the following example:
$ cd /opt/dhealth
$ yourdlt stop -t dual-node
$ rm -rf /opt/dhealth/yourdlt
Please note that you must only remove the yourdlt utility, not your node’s configuration files.
2.1 Fix for NPM prefix in Linux [LINUX ONLY] In case of Ubuntu or other Linux distributions, it may require that you change the global prefix of NPM such that you can use the yourdlt tool without sudo. Please, do not use sudo or root to run your node software. As a fix you can execute the following command which changes your NPM global path to your home directory:
echo "cache=/home/$USER/.npmcache@prefix=/home/$USER/.npm" | sed -e's/@/\n/g' > ~/.npmrc
You will then be able to install NPM software globally without SUDO or root.
2.2 Install the latest yourdlt software Please use the NPM tool to install yourdlt globally. The following command works on most operating systems:
$ npm install -g yourdlt
$ alias yourdlt='~/.npm/bin/yourdlt'
$ echo "@# YourDLT 1.3.x@alias yourdlt='~/.npm/bin/yourdlt'" | sed -e's/@/\n/g' >> ~/.bashrc
$ yourdlt -v
- Update your node configuration Having installed yourdlt@v1.3.3 globally, you can now go ahead and update your node’s configuration by running the following command:
Please, before you run this command, make sure to replace dual_config.yml with your custom preset file. If you used our guide for setting up a node before, it should be named dual_config.yml.
Also, we recommend that you backup the files of your node at /opt/dhealth/dual-node before you proceed with the upgrade.
$ yourdlt config -t dual-node -a dual -c dual_config.yml --upgrade
- Update your voting keys [this can be done once every month to make sure keys are always up to date.]
$ yourdlt updateVotingKeys -t dual-node
$ yourdlt link -t dual-node --useKnownRestGateways --maxFee 100000
- Restart node in daemon mode After the upgrade, you can start the node:
$ yourdlt run -t dual-node -d