# 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.
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 13 July 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.8.2 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:
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
# Periodic Uptime Rewards
During Phase 5, validators will enjoy the uptime rewards similar to Phase 4. The following is an example.
|Pre-commits signed||Tokens rewarded|
Total number of pre-commits will be refined after the end of Phase 5.
# 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-5/submissions/updates/<your-github-name> # Example # echo $(desmoscli keys show validator_key --bech=val --address) >> ./phase-5/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.