# Update your validator node
Upon completing this challenge, you will be rewarded 50 Desmos Tokens.
Additionally, you will also earn more tokens the longer you keep the node running. To know more about this please reference the Validators program.
Please note that we exported the
morpheus-3000 state at height
However, to allow all validators to have a chance of earning all the tokens by completing this challenge, we will start counting the precommits from the first block generated after 1st May 2020 00:00 UTC.
When a new version of Desmos is released, all validators need to update their node so that it can keep running properly. Following you will find the guide on how you can do this making sure everything is ready for when the new chain starts.
Stop the running service:
sudo systemctl stop desmosd1
Update the Desmos binaries:
cd ~/desmos git fetch -a git checkout tags/v0.4.0 make install1
Delete the current
genesis.jsonfile and download the new one:
rm ~/.desmosd/config/genesis.json curl https://raw.githubusercontent.com/desmos-labs/morpheus/master/genesis.json > ~/.desmosd/config/genesis.json1
Verify the validity of the generated
genesis.jsonfile by running the following commands:
jq -S -c -M '' ~/.desmosd/config/genesis.json | shasum -a 2561
The output should be
Reset your node to make sure everything is ready:
Open up the
persistent_peers =text at line 164 and change the whole line to be:
Start your new node:
sudo systemctl start desmosd1
Now you should be able to see your node properly syncing with the other ones by executing:
journalctl -n100 -f -u desmosd.service
# Getting the reward
After you have updated your node, please follow the steps below to claim your reward:
Create a fork of this repo inside your private GitHub profile.
If you do not know how to do it, follow the GitHub fork guide.
Pull the fork locally:
git clone https://github.com/<your-name>/primer.git ~/desmos-primer cd ~/desmos-primer1
Make sure your fork is up to date with the Primer repository:
git remote add upstream https://github.com/desmos-labs/primer.git git fetch upstream git rebase upstream/master1
Create a file named after your GitHub username containing the public key of your validator:
echo $(desmoscli keys show <your_key> --bech=val --address) >> ./phase-4/submissions/updates/<your-github-name> # Example # echo $(desmoscli keys show validator_key --bech=val --address) >> ./phase-4/submissions/updates/RiccardoM1
Commit the changes, push them to your forked repo and create a pull request. If you do not know how to create one, refer to the GitHub Pull Requests guide.