ETH 2.0 - Beacon Node
Eth 2.0 Clients
There are multiple Eth2 clients with working implementations. This guide will focus on installing Lighthouse, but be sure to research the other clients and promote Eth2 client diversity.
Dev Team
Sigma Prime
Consensys
Prysmatic Labs
Status
Focus
Speed, security
Enterprise
Usability, reliability
Lightweight
Language
Rust
Java
Go
Nim
Eth2 || Beacon Node || Installation
Install Rust:
If you don't already have curl
installed, you'll need to use:
NOTE: The installation will stop half way through. Press 1
thenEnter
to finish installation
Install other required packages:
Change directory to /home
:
/home
:Clone Lighthouse repository using git
:
git
:After logging back in, enter Lighthouse directory:
Use make to compile the binary:
Depending on hardware, this may take ~15 minutes. Good time for a break.
If you encounter any errors while compiling, head to the Ligthouse Discord. The developers of Lighthouse are very knowledgeable and always happy to help!
Eth2 || Beacon Node || Systemd File
Create lighthousebeacon
user:
lighthousebeacon
user:Create /lighthouse/beacon
directory:
/lighthouse/beacon
directory:Change ownership of /lighthouse/beacon
:
/lighthouse/beacon
:Copy Lighthouse binaries into /usr/local/bin
:
/usr/local/bin
:Create lighthousebeacon.service
:
lighthousebeacon.service
:Paste the following into the file:
[Unit]
Description=Lighthouse Beacon Node
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=lighthousebeacon
Group=lighthousebeacon
Restart=always
RestartSec=5
ExecStart=/usr/local/bin/lighthouse beacon_node --datadir /var/lib/lighthouse --network prater --staking --eth1-endpoints http://127.0.0.1:8545
[Install]
WantedBy=multi-user.target
The file should look like this:
Use Ctrl + X
to exit, Y
to save, then Enter
to confirm.
Below is a description of the command found in the "ExecStart" line:
/usr/local/bin/lighthouse beacon_node
- starts the beacon_node--datadir /var/lib/lighthouse/beacon-node
- data directory for Eth2 beacon node--network prater
- connect to prater testnet--staking
- enables the HTTP server for validator communication--eth1-endpoints http://127.0.0.1:8545
- Location of ETH1 node
Reload the system daemon:
Eth2 || Beacon || Run
Start lighthousebeacon.service
:
lighthousebeacon.service
:Check lighthousebeacon.service
output:
lighthousebeacon.service
output:This shows running journal entries created by lighthousebeacon.service
. You can use Ctrl + C
to close the window, but the program will continue running in the background.
Use sudo systemctl stop lighthousebeacon
if you'd like to stop the service.
Eth 2.0 || Beacon Node || Sync
Congratulations! The Eth2 beacon node is now syncing to the Prater testnet!
Last updated