Migrating a Validator
Ensure you Validator Backup before you migrate it. Do not forget!
Run A Full Node On A New Machine
Verify Mnemonics Are Backed Up
If you don't have the mnemonics saved, you can back it up with:
This prints the private key to stderr
, you can then paste in into the file mykey.backup
.
Sync Full Node
To check on the new full node if it finished catching-up:
Only continue if catching_up
is false
Stop Validator Node
To prevent double signing, you should stop the validator node before stopping the new full node to ensure the new node is at a greater block height than the validator node.
Please read about the dangers in running a validator.
The validator should start missing blocks at this point. This is the desired behavior!
Migrate priv_validator_key.json
On the validator node, the file is ~/.secretd/config/priv_validator_key.json
.
You can copy it manually or for example you can copy the file to the new machine using ssh:
After being copied, the key (priv_validator_key.json
) should then be removed from the old node's config
directory to prevent double-signing if the node were to start back up.
Restart Your Migrated Validator
The new node should start signing blocks once caught up.
Last updated