ETH2 - Validator
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Once you have generated your keys, the next step is to submit a deposit using the Launchpad.
Drag and drop your Deposit Data file onto the launchpad site:
Be sure your Metamask wallets has more than 32 ETH to cover gas fees (about 0.1 ETH)
Click "SEND DEPOSIT" to initiate the transaction in Metamask
Deposits
You must change YOURUSERNAME:YOURUSERNAME
to your username in the command below.
sudo chown -R YOURUSERNAME:YOURUSERNAME /var/lib/lighthouse
Note: If you don't know your username, use the command whoami
cd ~/lighthouse
lighthouse account validator import --directory $HOME --datadir /var/lib/lighthouse
/var/lib/lighthouse
back to root:sudo chown root:root /var/lib/lighthouse
/var/lib/lighthouse/beacon
:sudo chown -R lighthousebeacon:lighthousebeacon /var/lib/lighthouse/beacon
Systemd
lighthousevalidator
user:sudo useradd --no-create-home --shell /bin/false lighthousevalidator
/var/lib/lighthouse/validators
directory:sudo mkdir -p /var/lib/lighthouse/validators
/var/lib/lighthouse/validators
:sudo chown -R lighthousevalidator:lighthousevalidator /var/lib/lighthouse/validators
lighthousevalidator.service
:sudo nano /etc/systemd/system/lighthousevalidator.service
[Unit]
Description=Lighthouse Validator
Wants=network-online.target
After=network-online.target
[Service]
User=lighthousevalidator
Group=lighthousevalidator
Type=simple
Restart=always
RestartSec=5
ExecStart=/usr/local/bin/lighthouse validator_client --datadir /var/lib/lighthouse
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
lighthousevalidator.service
:sudo systemctl start lighthousevalidator
lighthousevalidator.service
output:sudo journalctl -fu lighthousevalidator.service
If the beacon node has not finished syncing, the validator will provide a warning:
Congratulations, you are officially ready to begin staking! Your validator will be assigned an activation epoch. Be sure you have all systems updated and online prior to activation!
Once your validator has activated and began attesting, no other action is needed. It's important to check for updates (both ETH1 and ETH2), and occassionally check your validator to ensure you are attesting.
sudo apt update && sudo apt upgrade
lighthousebeacon
and lighthousevalidator
sudo systemctl stop lighthousebeacon && sudo systemctl stop lighthousevalidator
cd ~/lighthouse
git pull origin master
make
/usr/local/bin
:sudo cp /$HOME/.cargo/bin/lighthouse /usr/local/bin
sudo systemctl start lighthousebeacon && sudo systemctl start lighthousevalidator
sudo journalctl -fu lighthousebeacon.service
sudo journalctl -fu lighthousevalidator.service
Lighthouse is updated! Check https://beaconcha.in/ to ensure you are attesting again.