"Lazy" exits (TESTNET ONLY)
Last updated
Last updated
On your validator node:
Download the latest version of the ethdo
tool here.
cd
wget https://github.com/wealdtech/ethdo/releases/download/v1.35.2/ethdo-1.35.2-linux-amd64.tar.gz
wget https://github.com/wealdtech/ethdo/releases/download/v1.35.2/ethdo-1.35.2-linux-amd64.tar.gz.sha256
Verify the checksums by ensuring the outputs of the following 2 commands are the same.
sha256sum ethdo-1.35.2-linux-amd64.tar.gz
cat ethdo-1.35.2-linux-amd64.tar.gz.sha256
Extract the ethdo
executable file.
tar xvf ethdo-1.35.2-linux-amd64.tar.gz
Download the latest Offline Preparation file from the Ethstaker github subpage. These are regenerated every day at 0:00 UTC
wget https://files.ethstaker.cc/offline-preparation-hoodi.tar.gz
wget https://files.ethstaker.cc/offline-preparation-hoodi.tar.gz.sha256
Verify the checksums by ensuring the outputs of the following 2 commands are the same.
sha256sum offline-preparation-hoodi.tar.gz
cat offline-preparation-hoodi.tar.gz.sha256
Extract the offline-preparation.json
file.
tar xvf offline-preparation-hoodi.tar.gz
Find your validator keystores on your machine.
sudo find /var/lib -name "keystore*.json"
Example output:
Copy the keystores you want to exit into the $HOME folder. The exact command will depend on your actual file paths.
Example:
sudo cp -r /var/lib/nimbus_validator/validators $HOME
Then change the owner of this copied validators
folder to your current user.
sudo chown -R $USER:$USER validators
Copy the offline-preparation.json and ethdo files into each validator keystore folders in $HOME.
cd
for folder in validators/0x*; do
cp offline-preparation.json ethdo "$folder"
done
List all your validator keys.
ls validators
Change directory into the validator key you want to exit.
Example:
cd ~/validators/0x807b70918fe987bf5bde5ac0fb7c5620bbe9aad6a4754a17db52c73ed7208a5ffb9f5fa78d1b7c11e827d71b3ccc03ce
List the actual file name of your validator key.
ls
Example:
Generate the validator exit message for each of that key.
./ethdo validator exit --validator="KEYSTORE_FILENAME" --passphrase='KEYSTORE_PASSWORD' --json --offline > exit_message.json
Note: Replace KEYSTORE_FILENAME
and KEYSTORE_PASSWORD
with actual values without removing the quotation marks.
If successful, no output will be generated by the terminal.
Prepare your 24-word mnemonic and identify your validator index on hoodi.beaconcha.in using the validator public keys found in the "Preparing to Exit" section earlier.
Run the following replacing VALIDATOR_INDEX and MNEMONIC with your actual values.
./ethdo validator exit --validator=VALIDATOR_INDEX --json --offline --mnemonic="MNEMONIC" > exit_message.json
Print out the exit message.
cat exit_message.json
Example:
Copy the entire output and go to the message broadcasting tool of hoodi.beaconcha.in to broadcast your exit message.
Paste your exit message in the text field and hit submit.
Congratulations! Your validator key will be exited soon but in the meantime, you will have to keep your validator node running until your key is fully exited.
Repeat the "Generate Exit Message" section for all other keys you want to exit.