Please make sure you backup your validator before you migrate it.
1. Run a new full node on a new machine.
2. Confirm you have the recovery seed phrase information for the active key running on the old machine
You can also back it up with:
On the validator node on the old machine:
secretcli keys export mykey
This prints the private key to stderr
, you can then paste in into the file mykey.backup
.
This can be done with the mnemonics:
On the full node on the new machine:
secretcli keys add mykey --recover
Or with the backup file mykey.backup
from the previous step:
On the full node on the new machine:
secretcli keys import mykey mykey.backup
To check on the new full node if it finished catching-up:
On the full node on the new machine:
secretcli status | jq .sync_info
(catching_up
should equal false
)
To prevent double signing, you should stop the validator node and only then stop the new full node.
Please read about the dangers in running a validator.
On the validator node on the old machine:
sudo systemctl stop secret-node
On the full node on the new machine:
sudo systemctl stop secret-node
On the old machine 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:
On the validator node on the old machine:
scp ~/.secretd/config/priv_validator_key.json ubuntu@new_machine_ip:~/.secretd/config/priv_validator_key.json
On the new machine:
sudo systemctl start secret-node