Skip to content

Commit 857a8e7

Browse files
github-actions[bot]ZhiyuCircle
authored andcommitted
chore: sync from main@65df33917e65e211610a0db7deb8064eb1c95c6c
Source commit : 65df33917e65e211610a0db7deb8064eb1c95c6c Source run : https://github.com/crcl-main/circle-chain-reth/actions/runs/24263409154
1 parent 8ffe5af commit 857a8e7

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

docs/running-an-arc-node.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ The Execution Layer (EL) is deployed by the `arc-node-execution` binary and star
114114
arc-node-execution node \
115115
--chain arc-testnet \
116116
--datadir $ARC_EXECUTION \
117+
--full \
117118
--ipcpath $ARC_RUN/reth.ipc \
118119
--auth-ipc --auth-ipc.path $ARC_RUN/auth.ipc \
119120
--http --http.addr 127.0.0.1 --http.port 8545 \
@@ -124,6 +125,12 @@ arc-node-execution node \
124125
--enable-arc-rpc
125126
```
126127

128+
> **Note on `--full` and snapshots:** The `--full` flag is required on the
129+
> first start when bootstrapping from a pruned snapshot. It reconciles internal
130+
> database tables that would otherwise fail a consistency check. After the
131+
> initial startup completes, you may restart without `--full` if you prefer to
132+
> run without pruning.
133+
127134
The `--chain` parameter configures the genesis file.
128135
By using `--chain arc-testnet`, the genesis configuration bundled in the binary is adopted.
129136
Replace with `--chain /path/to/genesis.json` if you have a custom genesis file.
@@ -143,6 +150,7 @@ After starting the [execution layer](#start-execution-layer), in a different ter
143150
```sh
144151
arc-node-consensus start \
145152
--home $ARC_CONSENSUS \
153+
--full \
146154
--eth-socket $ARC_RUN/reth.ipc \
147155
--execution-socket $ARC_RUN/auth.ipc \
148156
--rpc.addr 127.0.0.1:31000 \
@@ -307,6 +315,7 @@ WorkingDirectory=$HOME/.arc
307315
ExecStart=/usr/local/bin/arc-node-execution node \
308316
--chain arc-testnet \
309317
--datadir $HOME/.arc/execution \
318+
--full \
310319
--disable-discovery \
311320
--ipcpath /run/arc/reth.ipc \
312321
--auth-ipc \
@@ -350,6 +359,7 @@ Environment=RUST_LOG=info
350359
WorkingDirectory=$HOME/.arc
351360
ExecStart=/usr/local/bin/arc-node-consensus start \
352361
--home $HOME/.arc/consensus \
362+
--full \
353363
--eth-socket /run/arc/reth.ipc \
354364
--execution-socket /run/arc/auth.ipc \
355365
--rpc.addr 127.0.0.1:31000 \
@@ -410,4 +420,13 @@ For production monitoring, scrape the Prometheus metrics endpoints with Grafana:
410420

411421
### Pruning
412422

413-
The `--full` flag is accepted by both the CL and EL and will enable pruning. However, EL pruning is currently considered unstable and is not recommended at this time.
423+
The `--full` flag is accepted by both the CL and EL and will enable pruning.
424+
When bootstrapping from a pruned snapshot, `--full` is **required** on the
425+
first EL start to reconcile the database (see the note in
426+
[Start execution layer](#start-execution-layer)). After that initial run you
427+
can restart without `--full`.
428+
429+
> **Caution:** EL pruning increases memory usage and may cause out-of-memory
430+
> issues on constrained machines. If you encounter memory pressure, enable
431+
> backpressure (see [System Requirements](#system-requirements) section) and remove
432+
> `--full` after the first successful start.

0 commit comments

Comments
 (0)