-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bloxster
committed
Dec 20, 2024
1 parent
cb9ce75
commit afb2509
Showing
23 changed files
with
133 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,5 @@ | ||
# The Erigon 3 Book | ||
|
||
This is the official The Erigon 3 Book, soon online at <https://docs.erigon.tech/>. | ||
This is the official Erigon 3 documentation, hosted at <https://docs.erigon.tech/>. | ||
|
||
It is built on [mdbook](https://rust-lang.github.io/mdBook/). Please take a look at its install instructions first. | ||
|
||
## Build | ||
|
||
```shell | ||
mdbook build | ||
``` | ||
|
||
The compiled book will be available in the `book` subdirectory. | ||
|
||
## Run it locally | ||
|
||
```shell | ||
mdbook serve | ||
``` | ||
|
||
It will start a local HTTP server and serve the book contents at http://localhost:3000/. | ||
Development branch is hosted at <https://development.erigon-documentation-preview.pages.dev> and it is built on [mdbook](https://rust-lang.github.io/mdBook/). If you want to contribute please take a look at its install instructions first. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Using an external consensus client as validator | ||
|
||
To enable external consensus clients, add the flags: | ||
|
||
```bash | ||
--mine --miner.etherbase=... | ||
``` | ||
or | ||
|
||
```bash | ||
--mine --miner.miner.sigkey=... | ||
``` | ||
|
||
Other supported options are: | ||
- `--miner.notify`: Comma separated HTTP URL list to notify of new work packages | ||
- `--miner.gaslimit`: Target gas limit for mined blocks (default: `36000000`) | ||
- `--miner.etherbase`: Public address for block mining rewards (default: "`0`") | ||
- `--miner.extradata`: Block extra data set by the miner (default: `client version`) | ||
- `--miner.noverify`: Disable remote sealing verification (default: `false`) | ||
- `--miner.noverify`: Disable remote sealing verification (default: `false`) | ||
- `--miner.sigfile`: Private key to sign blocks with | ||
- `--miner.recommit`: Time interval to recreate the block being mined (default: `3s`) | ||
- `--miner.gasprice`: This option sets the minimum gas price for mined transactions | ||
- `--miner.gastarget`: This option sets the maximum amount of gas that could be spent during a transaction. | ||
|
||
Erigon supports [standard JSON-RPC methods](https://ethereum.org/en/developers/docs/apis/json-rpc/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
# Lighthouse | ||
|
||
Lighthouse is another popular client that combined with Erigon can be used for block building. | ||
Lighthouse is another popular client that combined with Erigon can be used for block building. The necessary steps to run Erigon with Lightouse are listed here following: | ||
|
||
1. Start Erigon with the flag `--externalcl` to allow a external Consesus Layer: | ||
|
||
```bash | ||
./build/bin/erigon --externalcl | ||
``` | ||
|
||
2. Install Lighthouse by following the [official instructions](https://lighthouse-book.sigmaprime.io). | ||
|
||
3. Lighthouse must fully synchronize before Erigon can start syncing, since Erigon requires an existing target head to sync to. The quickest way to get Lighthouse synced is to use a public checkpoint synchronization endpoint from the list at <https://eth-clients.github.io/checkpoint-sync-endpoints>. | ||
|
||
In order to communicate with Erigon the execution endpoint `<erigon address>:8551` must be specified, where `<erigon address>` is either `//localhost` or the IP address of the device running Erigon. | ||
|
||
Lighthouse must point to the [JWT secret](/advanced/jwt.md) automatically created by Erigon in the datadir directory (in the below example the default data directory is used). | ||
|
||
```bash | ||
lighthouse bn \ | ||
--network mainnet \ | ||
--execution-endpoint http://localhost:8551 \ | ||
--execution-jwt /home/usr/.local/share/erigon/jwt.hex \ | ||
--checkpoint-sync-url https://mainnet.checkpoint.sigp.io \ | ||
``` | ||
|
||
If your Lighthouse is on a different device, add `--authrpc.addr 0.0.0.0` (Engine API listens on localhost by default) as well as `--authrpc.vhosts <CL host>`. | ||
|
||
|
||
|
||
|
||
|
||
Documentation can be found here: <https://lighthouse-book.sigmaprime.io> | ||
|
||
The basic steps to run Erigon together with Lighthouse are: | ||
1. Install and run Erigon. Erigon will automatically create a JWT secret. | ||
2. Install and run Lighthouse, pointing to JWT secret created by Erigon. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,23 @@ | ||
# Prysm | ||
|
||
Prysm is a popular client that combined with Erigon can be used for staking. The necessary steps to run Erigon with Prysm are listed here following: | ||
|
||
<img src="/images/WIP.png" alt="" style="display: block; margin: 0 auto;"> | ||
1. Start Erigon with the flag `--externalcl` to allow a external Consesus Layer: | ||
|
||
```bash | ||
./build/bin/erigon --externalcl | ||
``` | ||
|
||
2. Install Prysm by following the [official instructions](https://docs.prylabs.network/docs/install/install-with-script). | ||
|
||
3. Prysm must fully synchronize before Erigon can start syncing, since Erigon requires an existing target head to sync to. The quickest way to get Prysm synced is to use a public checkpoint synchronization endpoint from the list at <https://eth-clients.github.io/checkpoint-sync-endpoints>. | ||
|
||
In order to communicate with Erigon the execution endpoint `<erigon address>:8551` must be specified, where `<erigon address>` is either `//localhost` or the IP address of the device running Erigon. | ||
|
||
Prysm must point to the [JWT secret](/advanced/jwt.md) automatically created by Erigon in the datadir directory (in the below example the default data directory is used). | ||
|
||
```bash | ||
./prysm.sh beacon-chain --execution-endpoint=http://localhost:8551 --mainnet --jwt-secret=/home/usr/.local/share/erigon/jwt.hex --checkpoint-sync-url=https://beaconstate.info --genesis-beacon-api-url=https://beaconstate.info | ||
``` | ||
|
||
If your Prysm is on a different device, add `--authrpc.addr 0.0.0.0` (Engine API listens on localhost by default) as well as `--authrpc.vhosts <CL host>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.