From cab3977a8386dee789df1687b6b1b3d296c9a34d Mon Sep 17 00:00:00 2001 From: Jonathan Otto Date: Sat, 20 Apr 2024 12:58:04 -0400 Subject: [PATCH] Clarify how to use snapshots --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 9fcb9d4..93c86df 100644 --- a/README.md +++ b/README.md @@ -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: