You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(l1): add quick guide on how to sync with holesky (#2485)
**Motivation**
Add instructions on how to set up ethrex along with a consensus node and
start syncing with holesky or other testnets
<!-- Why does this pull request exist? What are its goals? -->
**Description**
<!-- A clear and concise general description of the changes this PR
introduces -->
<!-- Link to issues: Resolves#111, Resolves#222 -->
Closes #issue_number
---------
Co-authored-by: Javier Rodríguez Chatruc <[email protected]>
For this quick tutorial we will be using lighthouse, but you can learn how to install and run any consensus node by reading their documentation.
328
+
329
+
You can choose your preferred installation method from [lighthouse's installation guide](https://lighthouse-book.sigmaprime.io/installation.html) and then run the following command to launch the node and sync it from a public endpoint
When using lighthouse directly from its repository, replace `lighthouse bn` with `cargo run --bin lighthouse -- bn`
336
+
337
+
Aside from holesky, these steps can also be used to connect to other supported networks by replacing the `--network` argument by another supported network and looking up a checkpoint sync endpoint for that network [here](https://eth-clients.github.io/checkpoint-sync-endpoints/)
338
+
339
+
If you have a running execution node that you want to connect to your ethrex node you can do so by passing its enode as a bootnode using the `--bootnodes` flag
340
+
341
+
Once the node is up and running you will be able to see logs indicating the start of each sync cycle along with from which block hash to which block hash we are syncing. You will also get regular logs with the completion rate and estimated finish time for state sync and state rebuild processes during snap sync. This will look something like this:
342
+
343
+
```bash
344
+
INFO ethrex_p2p::sync: Syncing from current head 0xb5f7…bde4 to sync_head 0xce96…fa5e
345
+
INFO ethrex_p2p::sync::state_sync: Downloading state trie, completion rate: 68%, estimated time to finish: 1h20m14s
346
+
INFO ethrex_p2p::sync::trie_rebuild: State Trie Rebuild Progress: 68%, estimated time to finish: 1h5m45s
347
+
```
348
+
349
+
If you want to restart the sync from the very start you can do so by wiping the database using the following command:
350
+
```bash
351
+
cargo run --bin ethrex -- removedb
352
+
```
353
+
303
354
# ethrex L2
304
355
305
356
In this mode, the ethrex code is repurposed to run a rollup that settles on Ethereum as the L1.
0 commit comments