Skip to content
Cosmopediaby Unity Nodes
DiscussionsValidationBuilding Gaia-7002 genesis.jsonForum ↗

Building Gaia-7002 genesis.json

Validation12 posts2,252 views3 likesLast activity Jul 2018
JL
jlandrewsOP
Jul 2018 3

To generate the genesis file for Gaia-7002, we exported the state from Gaia-7001, at height 24570 where it halted. The current version of gaiad has a bug in gaiad export, but we were able to use a workaround to successfully export the state. ( state.json ) Due to bugs in gaiad v0.22.0, there were some inconsistencies in the state which we corrected. Builder script First we load the exported state. ``` import json from hashlib import sha256 from base64 import b64decode j = json.loads(open("7001state.json","r").read()) ``` Then we removed validators who never signed blocks on Gaia-7001. This should help with time to startup of the chain and speed of consensus. ``` #validator addresses which hubble lists as being bonded validators but never signed a block pks = ['28d64d33cd086452e491becfc15f3d31054db144', '26cf59b48aa6ff3a5126330782090b19bd3b0e87', '1e1a2486dce3b96e08f41d313908088ad33ed491', '1866433301a542afd800b971d6390551088a0903', '10ddf9c6aaf8e6f91f33a4fae3ebeab3c98136d2', '00122e5e691286ac03220fcee3ebec038067dded', '60229e2e273297fe00219e46dffb8f76844cdef9', 'd9e215abd1d680db4d60f3b347a07f949ea5242a', 'e33184c1eab6fb7c6ccb893963e8534c277fa842',…

Excerpt (1178 of 4872 characters). Read the whole post on the forum ↗

CH
chris-chainflow
Jul 2018

Can we assume we’re in the genesis file if we were bonded at block 24570?

JL
jlandrews
Jul 2018

Yes, assuming your validator was live at some point.

JL
jlandrews
Jul 2018

Heads up to anyone who downloaded the genesis file already, there was a minor error. There was a typo of “chain-id” that should have been “chain_id”. It has been fixed now, in both the script and the resulting json file.

AD
adrian
Jul 2018

Awesome job. Could you also remove all instances of “[do-not-modify]” in the validator descriptions. It seems that in case it says “[do-not-modify]” their the owner is not able to update the values.

WI
wimel
Jul 2018

perfect! go to gaia-7002! :artificial_satellite:

CH
chris-chainflow
Jul 2018

@jlandrews Where’s the file to
download?

BH
bharvest
Jul 2018

could you remove “cosmosaccaddr1arlpxs2ftf5hgetqxxkvd7mqdc28mmaqclyv4y” from the genesis? this is mine and i lost my private key of this.

SL
slamper
Jul 2018

Nice work.

Could you please remove this Certus.One validator: VBVHOLnWGptY26J0wqXoZI2Dnu96pccMb08zlsaxPCQ=
and assign the 100 power to our new: 0vUHZTzJhnVDh7KJfuGt9g1uDsy0DK3BCQurhngwVos=

That would go with transferring the tokens of cosmosaccaddr1gq0qecxs8xdaarrqxxazwavwxm7qz5jzs5anvt to cosmosaccaddr1yqq6up8zyakmf6t7gg5txnyatqakj7ckkt8jfu

That’d be awesome.

CH
chris-chainflow
Jul 2018

chainflow08’s looking good :+1:

KO
kochacolaj
Jul 2018

can u please increase steak for kochacolaj to 100? i unbonded 50 but couldnt claim then rebond them due to a bug. suyuuu had the same problem - i dont know his amount. you see https://figment.network/cosmos/hubble/gaia-7001/validators/1E9CE94FD0BA5CFEB901F90BC658D64D85B134D2 that i unbonded and had maturity while 7001 was healthy. thx

JL
jlandrews
Jul 2018

Updated main post after changing script again. Previously forgot to track bond values to match updated validator state. We will be releasing the final / official genesis file through the SDK repo as usual I believe, so please don’t try to use the one posted here, it’s just for demonstration / transparency purposes.

← Back to Discussions