Connecting Your Gateway to the Consensus Layer
The consensus layer serves as the backend infrastructure for the Ethereum blockchain, hosting and verifying the efficacy of validators.
Several consensus layer clients exist including Lighthouse, Prysm, Nimbus, and Teku.
As mentioned previously, the bloXroute Gateway connects to your node as a peer. To connect your gateway as a peer to your Consensus Layer client, you should
Include your Consensus Layer client in the
--multiaddr
startup argument. Consensus Layer client's identity is available from the output of/eth/v1/node/identity
Beacon API endpoint.Add your gateway peer ID as a βtrusted peerβ.
This is similar to the requirements for connecting to the Execution Layer client, but the execution is a bit different.
1. Make sure Beacon node uses private key.
Strictly speaking, this step is not required. If your node does not have a private key, then every time you restart it it will generate a new public key. This public key is part of the multiaddr
argument, which means every time you restart your node you will need to update the gateway startup argument.
Verify Lighthouse has the private key file beacon/network/key
within the datadir.
2. Add your Consensus Layer client to the --multiaddr
argument
--multiaddr
argumentAs its name suggests, multiaddr supports multiple addresses. When adding your consensus layer client to this argument, it should look like the below:
3. Add the Gateway peer ID as a trusted peer
The Lighthouse implementation supports adding beacon nodes as trusted peers by running with --trusted-peers <Gateway peer id>
as a parameter.
During the startup process, you can look up the peerID string from the Gateway log by grep-ing for the phrase, βStarting P2P beacon node:
β. Below is an example of the log reporting the peer ID.
Last updated