Confirm your Desmos gentx works [desmos-mainnet-1]

Cat Boss
2 min readAug 22, 2021

Hello Cat Boss here! Today we’re going to review how to make sure our gentx actually works before submitting.

We’re paranoid cats after all…so what better way to test than to try running the genesis file locally? (if there are better ways do tell us! ヾ(=`ω´=)ノ”)

Note: This method works with most Cosmos SDK chains but we will be focusing on Desmos in this post.

Prerequisites

Have the Desmos CLI ready and make sure the version is v0.17.7

Setup

If it isn’t already, put your gentx in ~/.desmos/config/gentx/<gentx.json> .

Make sure you have the latest genesis file (There was a small update to the file on August 20, 2021 so if you have an earlier one please update it)

curl https://raw.githubusercontent.com/desmos-labs/mainnet/main/penultimate_genesis.json > ~/.desmos/config/genesis.json

In order to test to locally we will edit the genesis_time so that the date has already past (example: at the time of this writing it is August 22 so I set the genesis_time in genesis.json to 2021-08-20T15:00:00Z

If this isn’t edited we will get something like this:

INF Genesis time is in the future. Sleeping until then... genTime=2021-08-31T15:00:00Z

Collect Gentx

Run the following command to collect all the gentx inside ~/.desmos/config/gentxs (there should only be one)

desmos collect-gentxs

Start locally

desmos start

If you start to see the following messages then it’s safe to say your gentx works correctly ヾ(=`ω´=)ノ”.

INF executed block height=1 module=state num_invalid_txs=0 num_valid_txs=0

Congrats!
Now go and submit it~

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Cat Boss
Cat Boss

Written by Cat Boss

We’re dPoS validators and we like writing medium posts documenting our journey, sharing tips we learn along the way. Trust me, I am a Cat.

No responses yet

Write a response