# Update your validator node

Rewards

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.

  1. Stop the running service:

    sudo systemctl stop desmosd
    
    1
  2. Update the Desmos binaries:

    cd ~/desmos
    git fetch -a 
    git checkout tags/v0.8.2
    make install
    
    1
    2
    3
    4
  3. Delete the current genesis.json file and download the new one:

    rm ~/.desmosd/config/genesis.json
    curl https://raw.githubusercontent.com/desmos-labs/morpheus/master/genesis.json > ~/.desmosd/config/genesis.json
    
    1
    2
  4. Verify the validity of the generated genesis.json file by running the following commands:

    jq -S -c -M '' ~/.desmosd/config/genesis.json | shasum -a 256
    
    1

    The output should be

    d58db84eb3978e1c290a0fbd4a0606e5d7249fa9543e0643313b86c694cd02f6  -
    
    1
  5. Reset your node to make sure everything is ready:

    desmosd unsafe-reset-all
    
    1
  6. Start your new node:

    sudo systemctl start desmosd
    
    1

Now you should be able to see your node properly syncing with the other ones by executing:

journalctl -n100 -f -u desmosd.service
1

# 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
345,600 1,500
353,480 1,750
361,540 2,040
369,790 2,380
378,220 2,780
386,850 3,240
395,670 3,780
404,690 4,410
413,920 5,140
423,360 6,000

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:

  1. 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.

  2. Pull the fork locally:

    git clone https://github.com/<your-name>/primer.git ~/desmos-primer
    cd ~/desmos-primer
    
    1
    2
  3. 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/master
    
    1
    2
    3
  4. 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/RiccardoM
    
    1
    2
    3
    4
  5. 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.

Last Updated: 8/5/2020, 3:45:54 PM