Migrating to a Different Server
You used Contabo didn't you...
It is advisable to simply unstake and create a new Validator from scratch. It will probably save you time.
However, if you have grown attached to your Validator and want it to live on a new machine, How do you do it?
No problem, one of your amazing community members has developed this guide. After you have created a new machine and finished all the steps up to and including Creating new Linux User, follow this guide.
On Your New Machine:
Download Binaries via APT Repo
sudo mkdir -p /etc/apt/keyrings
curl -fsSL repo.chainflip.io/keys/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/chainflip.gpg
Verify the key's authenticity:
gpg --show-keys /etc/apt/keyrings/chainflip.gpg
After that, add Chainflip's Repo to apt sources list:
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/chainflip.gpg] https://repo.chainflip.io/perseverance/ focal main" | sudo tee /etc/apt/sources.list.d/chainflip.list
Installing The Packages
sudo apt-get update
sudo apt-get install -y chainflip-cli chainflip-node chainflip-engine
Adding your existing keys
sudo mkdir /etc/chainflip/keys
Note: After this you don't need to generate new Signing Keys, you can skip that phase and continue to the command below with your old Seed Secret.
Loading Your Signing Keys
YOUR_VALIDATOR_WALLET_PRIVATE_KEY
<< Change to Your private key from Metamask.echo -n "YOUR_VALIDATOR_WALLET_PRIVATE_KEY" | sudo tee /etc/chainflip/keys/ethereum_key_file
YOUR_CHAINFLIP_SECRET_SEED
<< change this text to the old Secret Seedexport SECRET_SEED=YOUR_CHAINFLIP_SECRET_SEED
echo -n "${SECRET_SEED:2}" | sudo tee /etc/chainflip/keys/signing_key_file
Finally, we need to do a similar process one more time. We need to generate a separate key that is used for secure communication between Validators. This time run:
sudo chainflip-node key generate-node-key --file /etc/chainflip/keys/node_key_file
You can check that the command worked by running the following command:
cat /etc/chainflip/keys/node_key_file
You should see the contents of the files printed to your terminal.
Back Them Up & Copy Your Validator ID
sudo chmod 600 /etc/chainflip/keys/ethereum_key_file
sudo chmod 600 /etc/chainflip/keys/signing_key_file
sudo chmod 600 /etc/chainflip/keys/node_key_file
history -c
Make sure to update your config file with the IP address of the new VPS. Otherwise you'll get slashed once you start the engine on the new VPS.
WARNING Do not run two instances of your Validator at the same time. You will almost certainly be slashed. Make sure you turn off your old server before you turn on your new one.
💣
⚛
After that make sure to stop the engine and the node on the old VPS by running:
On the Old VPS
sudo systemctl stop chainflip-node.service
sudo systemctl stop chainflip-engine.service
sudo systemctl disable chainflip-node.service
sudo systemctl disable chainflip-engine.service
On the New VPS
Setup the config file as explained here:
Then start the node and engine services as explained here:
Last modified 2mo ago