docs(book): mention full node in mainnet.md (#4454)

This commit is contained in:
Alexey Shekhirin
2023-09-03 17:40:54 +01:00
committed by GitHub
parent e4f26e8bf0
commit ce1c0eeb00

View File

@ -17,13 +17,20 @@ By running both an execution client like Reth and a consensus client, such as Li
First, ensure that you have Reth installed by following the [installation instructions][installation].
Now, start the node as follows:
Now, to start the archive node, run:
```bash
RUST_LOG=info reth node
```
> Note that this command will not open any HTTP/WS ports by default. You can change this by adding the `--http`, `--ws` flags, respectively and using the `--http.api` and `--ws.api` flags to enable various [JSON-RPC APIs](../jsonrpc/intro.md). For more commands, see the [`reth node` CLI reference](../cli/node.md).
And to start the full node, run:
```bash
RUST_LOG=info reth node --full
```
On differences between archive and full nodes, see [Pruning & Full Node](./pruning.md#basic-concepts) section.
> Note that these commands will not open any HTTP/WS ports by default. You can change this by adding the `--http`, `--ws` flags, respectively and using the `--http.api` and `--ws.api` flags to enable various [JSON-RPC APIs](../jsonrpc/intro.md). For more commands, see the [`reth node` CLI reference](../cli/node.md).
The EL <> CL communication happens over the [Engine API](https://github.com/ethereum/execution-apis/blob/main/src/engine/common.md), which is by default exposed at `http://localhost:8551`. The connection is authenticated over JWT using a JWT secret which is auto-generated by Reth and placed in a file called `jwt.hex` in the data directory, which on Linux by default is `$HOME/.local/share/reth/` (`/Users/<NAME>/Library/Application Support/reth/mainnet/jwt.hex` in Mac).