Migrating a Validator
If you don't have the mnemonics saved, you can back it up with:
# from the validator machine
secretd keys export mykey
This prints the private key to
stderr, you can then paste in into the file
To check on the new full node if it finished catching-up:
# on the new full node
secretd status | jq .SyncInfo
# expected output should be similar to:
# on the validator node
sudo systemctl stop secret-node
The validator should start missing blocks at this point. This is the desired behavior!
On the validator node, the file is
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
configdirectory to prevent double-signing if the node were to start back up.
# on the validator node/old machine
mv ~/.secretd/config/priv_validator_key.json ~/.secretd/bak_priv_validator_key.json
# on the new machine/new validator
sudo systemctl restart secret-node
The new node should start signing blocks once caught up.