Skip to content
This repository was archived by the owner on Dec 22, 2025. It is now read-only.

Commit afb2509

Browse files
author
Bloxster
committed
updates and fixes
1 parent cb9ce75 commit afb2509

23 files changed

+133
-163
lines changed

README.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
# The Erigon 3 Book
22

3-
This is the official The Erigon 3 Book, soon online at <https://docs.erigon.tech/>.
3+
This is the official Erigon 3 documentation, hosted at <https://docs.erigon.tech/>.
44

5-
It is built on [mdbook](https://rust-lang.github.io/mdBook/). Please take a look at its install instructions first.
6-
7-
## Build
8-
9-
```shell
10-
mdbook build
11-
```
12-
13-
The compiled book will be available in the `book` subdirectory.
14-
15-
## Run it locally
16-
17-
```shell
18-
mdbook serve
19-
```
20-
21-
It will start a local HTTP server and serve the book contents at http://localhost:3000/.
5+
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.

src/SUMMARY.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,18 @@
2323
- [Default Ports and Firewalls](basic/ports.md)
2424
- [Web3 Wallet](basic/wallet)
2525

26+
- [Quick nodes](quick_nodes.md)
27+
- [How to run an Ethereum node](nodes/ethereum.md)
28+
- [How to run a Gnosis Chain node](nodes/gnosis.md)
29+
- [How to run a Polygon node](nodes/polygon.md)
30+
2631
- [Advanced Usage](advanced.md)
2732
- [Configuring Erigon](advanced/configuring.md)
2833
- [Consensus Layer](advanced/consensus_layer.md)
2934
- [Caplin](advanced/caplin.md)
3035
- [Prysm](advanced/prysm.md)
3136
- [Lighthouse](advanced/lighthouse.md)
3237
- [JWT secret](advanced/jwt.md)
33-
- [Block production](advanced/block-prod.md)
3438
- [Options](advanced/options.md)
3539
- [RPC Daemon](advanced/rpc_daemon.md)
3640
- [TxPool](advanced/txpool.md)
@@ -39,14 +43,9 @@
3943
- [TLS Authentication](advanced/tls-authentication.md)
4044
- [Perfomance Tricks](advanced/performance.md)
4145

42-
---
43-
44-
- [Quick nodes](quick_nodes.md)
45-
- [Ethereum](nodes/ethereum.md)
46-
- [Gnosis](nodes/gnosis.md)
47-
- [Polygon](nodes/polygon.md)
48-
49-
---
46+
- [Staking](staking.md)
47+
- [External CL](advanced/bp-ext.md)
48+
- [Caplin](advanced/bp-caplin.md)
5049

5150
- [Tools](tools.md)
5251
- [Dagnostic Tools](tools/introduction.md)
Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,7 @@
1-
# Block production
2-
3-
*How to propose and validate blocks with Erigon*
4-
5-
Both remote miners and Caplin are supported.
6-
7-
# Using remote miners
8-
9-
To enable remote miners , add the flags:
10-
11-
```bash
12-
--mine --miner.etherbase=...
13-
```
14-
or
15-
16-
```bash
17-
--mine --miner.miner.sigkey=...
18-
```
19-
20-
Other supported options are:
21-
- `--miner.notify`: Comma separated HTTP URL list to notify of new work packages
22-
- `--miner.gaslimit`: Target gas limit for mined blocks (default: `36000000`)
23-
- `--miner.etherbase`: Public address for block mining rewards (default: "`0`")
24-
- `--miner.extradata`: Block extra data set by the miner (default: `client version`)
25-
- `--miner.noverify`: Disable remote sealing verification (default: `false`)
26-
- `--miner.noverify`: Disable remote sealing verification (default: `false`)
27-
- `--miner.sigfile`: Private key to sign blocks with
28-
- `--miner.recommit`: Time interval to recreate the block being mined (default: `3s`)
29-
- `--miner.gasprice`: This option sets the minimum gas price for mined transactions
30-
- `--miner.gastarget`: This option sets the maximum amount of gas that could be spent during a transaction.
31-
32-
Erigon supports [standard JSON-RPC methods](https://ethereum.org/en/developers/docs/apis/json-rpc/).
33-
341
# Using Caplin as validator
35-
*Running Erigon with Caplin and Lighthouse Validator*
2+
*Running Erigon with Caplin as validator*
363

37-
Caplin is also suitable for staking, however, you will need to utilize either Lighthouse, Teku, or another validator client as your key manager, since Caplin does not offer a native key management solution.
4+
Caplin is also suitable for staking. However, it is required to pair it with a validator key manager, such as Lighthouse or Teku, since it doesn't have a native key management system.
385

396
This guide explains how to use Erigon with its embedded Caplin consensus layer and Lighthouse as the validator client for staking on Ethereum.
407

src/advanced/bp-ext.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Using an external consensus client as validator
2+
3+
To enable external consensus clients, add the flags:
4+
5+
```bash
6+
--mine --miner.etherbase=...
7+
```
8+
or
9+
10+
```bash
11+
--mine --miner.miner.sigkey=...
12+
```
13+
14+
Other supported options are:
15+
- `--miner.notify`: Comma separated HTTP URL list to notify of new work packages
16+
- `--miner.gaslimit`: Target gas limit for mined blocks (default: `36000000`)
17+
- `--miner.etherbase`: Public address for block mining rewards (default: "`0`")
18+
- `--miner.extradata`: Block extra data set by the miner (default: `client version`)
19+
- `--miner.noverify`: Disable remote sealing verification (default: `false`)
20+
- `--miner.noverify`: Disable remote sealing verification (default: `false`)
21+
- `--miner.sigfile`: Private key to sign blocks with
22+
- `--miner.recommit`: Time interval to recreate the block being mined (default: `3s`)
23+
- `--miner.gasprice`: This option sets the minimum gas price for mined transactions
24+
- `--miner.gastarget`: This option sets the maximum amount of gas that could be spent during a transaction.
25+
26+
Erigon supports [standard JSON-RPC methods](https://ethereum.org/en/developers/docs/apis/json-rpc/).

src/advanced/configuring.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ The Erigon 3 CLI has a wide range of flags that can be used to customize its beh
44

55
## Data Storage
66

7-
* `--datadir`: Set the data directory for the databases (default: `/home/admin/.local/share/erigon`)
8-
* `--ethash.dagdir`: Set the directory to store the ethash mining DAGs (default: `/home/admin/.local/share/erigon-ethash`)
7+
* `--datadir`: Set the data directory for the databases (default: `/home/usr/.local/share/erigon`)
8+
* `--ethash.dagdir`: Set the directory to store the ethash mining DAGs (default: `/home/usr/.local/share/erigon-ethash`)
99
* `--database.verbosity` Enabling internal db logs. Very high verbosity levels may require recompile db. Default: 2, means warning. (default: `2`)
1010

1111
## Logging

src/advanced/downloader.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ To display available options for downloader digit:
159159
160160
The `--help` flag listing is reproduced below for your convenience.
161161
162-
```
162+
```bash
163163
snapshot downloader
164164
165165
Usage:
@@ -182,7 +182,7 @@ Available Commands:
182182
183183
Flags:
184184
--chain string name of the network to join (default "mainnet")
185-
--datadir string Data directory for the databases (default "/home/admin/.local/share/erigon")
185+
--datadir string Data directory for the databases (default "/home/usr/.local/share/erigon")
186186
--db.writemap Enable WRITE_MAP feature for fast database writes and fast commit times (default true)
187187
--diagnostics.disabled Disable diagnostics
188188
--diagnostics.endpoint.addr string Diagnostics HTTP server listening interface (default "127.0.0.1")

src/advanced/lighthouse.md

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,33 @@
11
# Lighthouse
22

3-
Lighthouse is another popular client that combined with Erigon can be used for block building.
3+
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:
4+
5+
1. Start Erigon with the flag `--externalcl` to allow a external Consesus Layer:
6+
7+
```bash
8+
./build/bin/erigon --externalcl
9+
```
10+
11+
2. Install Lighthouse by following the [official instructions](https://lighthouse-book.sigmaprime.io).
12+
13+
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>.
14+
15+
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.
16+
17+
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).
18+
19+
```bash
20+
lighthouse bn \
21+
--network mainnet \
22+
--execution-endpoint http://localhost:8551 \
23+
--execution-jwt /home/usr/.local/share/erigon/jwt.hex \
24+
--checkpoint-sync-url https://mainnet.checkpoint.sigp.io \
25+
```
26+
27+
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>`.
28+
29+
30+
31+
432

5-
Documentation can be found here: <https://lighthouse-book.sigmaprime.io>
633

7-
The basic steps to run Erigon together with Lighthouse are:
8-
1. Install and run Erigon. Erigon will automatically create a JWT secret.
9-
2. Install and run Lighthouse, pointing to JWT secret created by Erigon.

src/advanced/prysm.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
# Prysm
22

3+
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:
34

4-
<img src="/images/WIP.png" alt="" style="display: block; margin: 0 auto;">
5+
1. Start Erigon with the flag `--externalcl` to allow a external Consesus Layer:
6+
7+
```bash
8+
./build/bin/erigon --externalcl
9+
```
10+
11+
2. Install Prysm by following the [official instructions](https://docs.prylabs.network/docs/install/install-with-script).
12+
13+
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>.
14+
15+
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.
16+
17+
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).
18+
19+
```bash
20+
./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
21+
```
22+
23+
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>`.

src/advanced/rpc_daemon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ For example:
4949

5050
```bash
5151
./build/bin/erigon --internalcl --private.api.addr=localhost:9090 --http=false
52-
./build/bin/rpcdaemon --private.api.addr=localhost:9090 --http.vhosts="*" --http.addr="0.0.0.0" --http.api=eth,erigon,web3,net,debug,trace,txpool —-datadir=/home/admin/.local/share/erigon
52+
./build/bin/rpcdaemon --private.api.addr=localhost:9090 --http.vhosts="*" --http.addr="0.0.0.0" --http.api=eth,erigon,web3,net,debug,trace,txpool —-datadir=/home/usr/.local/share/erigon
5353
```
5454

5555
With the above command it has also been specified which RPC namespaces to enable by `--http.api` flag.

src/advanced/txpool.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Usage:
4646
txpool [flags]
4747

4848
Flags:
49-
--datadir string Data directory for the databases (default "/home/admin/.local/share/erigon")
49+
--datadir string Data directory for the databases (default "/home/usr/.local/share/erigon")
5050
-h, --help help for txpool
5151
--log.console.json Format console logs with JSON
5252
--log.console.verbosity string Set the log level for console logs (default "info")

0 commit comments

Comments
 (0)