Skip to content

Commit

Permalink
Clarify how to use snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jotto authored Apr 20, 2024
1 parent cc0a507 commit cab3977
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ docker run --env-file .env.sepolia -e OP_NODE_L2_ENGINE_RPC=ws://localhost:8551

You can fetch the latest snapshots via the URLs provided in the [Base docs](https://docs.base.org/guides/run-a-base-node/#snapshots).

The tar'd directory structure (for mainnet) looks like: `snapshots/mainnet/download/geth` and the snapshots directory (as opposed to the child geth directory) is meant to exist in the root of the geth data directory. The geth data directory is set by the `GETH_HOST_DATA_DIR` env var, which can be set in the .env file.

So, cd into your geth data dir, download the snapshot, and untar it right there.

### Syncing

Sync speed depends on your L1 node, as the majority of the chain is derived from data submitted to the L1. You can check your syncing status using the `optimism_syncStatus` RPC on the `op-node` container. Example:
Expand Down

0 comments on commit cab3977

Please sign in to comment.