Lighthouse

Overview

Lighthouse is an Eth client with a heavy focus on speed and security. The team behind it, Sigma Prime, is an information security and software engineering firm who have funded Lighthouse along with the Ethereum Foundation, Consensys, and private individuals. Lighthouse is built in Rust and offered under an Apache 2.0 License.

1. Initial configuration

Create a service user for the consensus service, create data directory and assign ownership.

sudo adduser --system --no-create-home --group consensus
sudo mkdir -p /var/lib/lighthouse
sudo chown -R consensus:consensus /var/lib/lighthouse

Install dependencies.

sudo apt install curl ccze jq -y

2. Install Binaries

  • Downloading binaries is often faster and more convenient.

  • Building from source code can offer better compatibility and is more aligned with the spirit of FOSS (free open source software).

Option 1 - Download binaries

Run the following to automatically download the latest linux release, un-tar and cleanup.

Install the binaries.

Option 2 - Build from source code

Install rust dependency

When prompted, enter '1' to proceed with the default install.

Update your environment variables.

Install rust dependencies.

Build the binaries.

In case of compilation errors, run the following sequence.

Verify lighthouse was built properly by checking the version number.

Install the binary.

3. Setup and configure systemd

Create a systemd unit file to define your consensus.service configuration.

Paste the following configuration into the file.

To exit and save, press Ctrl + X, then Y, then Enter.

Run the following to enable auto-start at boot time.

Finally, start your consensus layer client and check it's status.

Press Ctrl + C to exit the status.

Check your logs to confirm that the consensus client is up and syncing.

Press Ctrl + C to exit the logs.

4. Helpful consensus client commands

Example of Synced Lighthouse Consensus Client Logs

Now that your consensus client is configured and started, you have a full node.

Proceed to the next step on setting up your validator client, which turns a full node into a staking node.

If you wanted to setup a full node, not a staking node, stop here! Congrats on running your own full node! 🎉