## Issue Addressed N/A ## Proposed Changes Update the lighthouse book to accommodate the new `--testnet` CLI param. ## Additional Info
4.3 KiB
Become an Ethereum 2.0 Validator
There are two public testnets currently available. Medalla and Altona. Lighthouse supports both out of the box and joining these multi-client testnets is easy if you're familiar with the terminal.
Lighthouse runs on Linux, MacOS and Windows and has a Docker work-flow to make things as simple as possible.
0. Acquire Goerli ETH
Before you install Lighthouse, you'll need Metamask and 32 gETH (Goerli ETH). We recommend the mudit.blog faucet for those familiar with Goerli, or goerli.net for an overview of the testnet.
If this is your first time using Metamask and/or interacting with an Ethereum test network, we recommend going through the beginning of this guide first (up to the Signing your first transaction with MetaMask section).
1. Install and start Lighthouse
There are two, different ways to install and start a Lighthouse validator:
-
Using
docker-compose: this is the easiest method. -
Building from source: this is a little more involved, however it gives a more hands-on experience.
Once you've completed either one of these steps, you can move onto the next step.
Take note when running Lighthouse. Use the --testnet parameter to specify the testnet you whish to participate in. Medalla is currently the default, so make sure to use --testnet altona to join the Altona testnet.
2. Submit your deposit to Goerli
Upload the eth1_deposit_data.rlp file from your validator
directory (created in the previous step) to submit your 32 Goerli-ETH
deposit using Metamask.
Note that the method you used in step 1 will determine where this file is located.
Upload and Submit DepositYour validator deposit was submitted and this step is complete.
See the transaction on Etherscan or reload to perform another deposit.
Error
Unknown error.
Please refresh to reupload.
This deposit is made using gETH (Goerli ETH) which has no real value. Please don't ever send real ETH to our deposit contract!
3. Leave Lighthouse running
Leave your beacon node and validator client running and you'll see logs as the beacon node stays synced with the network while the validator client produces blocks and attestations.
It will take 4-8+ hours for the beacon chain to process and activate your validator, however you'll know you're active when the validator client starts successfully publishing attestations each slot:
Dec 03 08:49:40.053 INFO Successfully published attestation slot: 98, committee_index: 0, head_block: 0xa208…7fd5,
Although you'll produce an attestation each slot, it's less common to produce a block. Watch for the block production logs too:
Dec 03 08:49:36.225 INFO Successfully published block slot: 98, attestations: 2, deposits: 0, service: block
If you see any ERRO (error) logs, please reach out on
Discord or create an
issue.
Don't forget to checkout the open-source block explorer for the Lighthouse testnet at lighthouse-testnet3.beaconcha.in.
Happy staking!
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <script charset="utf-8" src="https://cdn.ethers.io/scripts/ethers-v4.min.js" type="text/javascript"> </script> <script src="js/deposit.js"></script>