Skip to content
Cosmopediaby Unity Nodes
DiscussionsValidationUpgrading `priv_validator.json`Forum ↗

Upgrading `priv_validator.json`

Validation9 posts2,052 views8 likesLast activity Jul 2018
JA
jackOP
Jul 2018 4

Upgrading from `gaia-6002` to `gaia-7000` These instructions are for full nodes that have ran on previous testnets and would like to upgrade to the latest testnet. Reset Data First, remove the outdated files and reset the data. ``` rm $HOME/.gaiad/config/addrbook.json $HOME/.gaiad/config/genesis.json ``` Additionally there was a change in the format of the `~/.gaiad/config/priv_key.json` in the latest release of Tendermint core (through `go-amino`). To switch your key to the new format you will need to change three `type` fields from random strings to human readable names. The following fields need to be changed: ``` .pub_key.type -> tendermint/PubKeyEd25519 .last_signature.type -> tendermint/SignatureEd25519 .priv_key.type -> tendermint/PrivKeyEd25519 ``` You will also need to quote the `last_height` and `last_round` fields. Examples of new and old files are below: OLD FORMAT ~/.gaiad/config/priv_validator.json ``` { "address": "3932BFD12BC9584ECCBE38F9CCFA97FA173CC873", "pub_key": { "type": "AC26791624DE60", "value": "wSTygw+OfryqInQu0xVS3rGTnSjBXjWC8jHY/TzgvSE=" }, "last_height": 519423, "last_round": 0, "last_step": 3,…

Excerpt (1195 of 3554 characters). Read the whole post on the forum ↗

WI
wimel
Jul 2018

Maybe few steps missings? have the error:
Error reading PrivValidator from /root/.gaiad/config/priv_validator.json: encoding/hex: invalid byte: U+0074 't'
more people on Riot chat have the same problem :grinning:

ME
melea-trust
Jul 2018

But that format is for gaia-7000
so is ok the error in gaia-6002 imo.
when gaia-7000 is ready, this format works for my understand.

if you see, you are in gaia-6002 today, not in 7000 yet.
:wink:

WI
wimel
Jul 2018 1

Yes, I think this guide is for something like beta gaia-7000 :sweat_smile:
I just want to try gaia-7000 anyway. :rofl:

JA
jack
Jul 2018 2

@wimel Hold on for a couple more days! We will be launching gaia-7000 early next week. Need to make sure we get all the fixes from gaia-6002 into gaiad and we are running a small internal testnet first. We will keep you updated here!

CH
chris-chainflow
Jul 2018

I don’t have a “last_signature” entry in my file. Is that because I wasn’t validating on 6002?

JA
jack
Jul 2018 1

@chris-chainflow Yup! No need to worry about that one.

SU
suyu
Jul 2018

this could be so complicated, we need to get some tools ^^

JA
jack
Jul 2018

This is a one time migration that doesn’t affect any funds so I don’t think we will build tooling specifically for this.

← Back to Discussions