From cbce67f7e4d40757e4c5cc40bebfaf4e9b181c5c Mon Sep 17 00:00:00 2001 From: soyboy Date: Mon, 23 Oct 2023 06:40:29 -0700 Subject: [PATCH] update node operator instructions OP Sepolia needs to be initialized with a genesis file. --- src/docs/developers/bedrock/node-operator-guide.md | 5 ++--- src/docs/developers/nodes/testnet.md | 10 +++++----- src/docs/useful-tools/networks.md | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/docs/developers/bedrock/node-operator-guide.md b/src/docs/developers/bedrock/node-operator-guide.md index 52f1b4fde..7c6377f69 100644 --- a/src/docs/developers/bedrock/node-operator-guide.md +++ b/src/docs/developers/bedrock/node-operator-guide.md @@ -59,7 +59,7 @@ Even though the Docker image for the Execution Engine is called `op-geth`, the a We'll start with `op-geth`'s configuration because it is more complex. As mentioned before, `op-geth` is a minimal fork of `go-ethereum`. As a result, it stores its state in a database that requires initialization. Initialization is done one of two ways, depending on which network you're deploying: -1. **With a Genesis File:** This is for OP Sepolia, and other testnets or deployments that are not migrated from a legacy network. In this case, you'll download the todo: update with link [genesis file]() and initialize the data directory via `geth init`. +1. **With a Genesis File:** This is for OP Sepolia, and other testnets or deployments that are not migrated from a legacy network. In this case, you'll download the [genesis file](https://networks.optimism.io/op-sepolia/genesis.json) and initialize the data directory via `geth init`. 2. **With a Data Directory:** This is used for networks that are migrated from a legacy network. This would include OP Mainnet and OP Goerli. In this case, you'll download a preconfigured data directory and extract it. No further initialization is necessary in this case, because the data directory contains the network's genesis information. Regardless of how `op-geth` is initialized, you'll need to ensure that you have sufficient disk space available to store the network's data. As of this writing, the mainnet data directory is ~100GB for a full node and ~1TB for an archival node. The OP Goerli data directory is ~40GB for a full node. @@ -73,8 +73,7 @@ Instructions for each initialization method are below. If you're spinning up an ```bash #!/bin/sh FILE=/$DATADIR/genesis.json -todo: update url -OP_GETH_GENESIS_URL=https://storage.googleapis.com/oplabs-network-data/Sepolia/genesis.json +OP_GETH_GENESIS_URL=https://networks.optimism.io/op-sepolia/genesis.json if [ ! -s $FILE ]; then apk add curl diff --git a/src/docs/developers/nodes/testnet.md b/src/docs/developers/nodes/testnet.md index 5249d9fb6..39b17efed 100644 --- a/src/docs/developers/nodes/testnet.md +++ b/src/docs/developers/nodes/testnet.md @@ -14,8 +14,7 @@ Migrated Networks, *OP Mainnet* and *OP Goerli*, were running before the Bedrock OP Sepolia is non-migrated network so it requires [initialization via genesis file](../bedrock/node-operator-guide/#initialization-via-genesis-file). `op-geth` uses JSON files to encode a network's genesis information. You'll need to download the genesis JSON, then run the following command to initialize the data directory: ```bash -todo: update link -curl -o -sL +curl -o -sL https://networks.optimism.io/op-sepolia/genesis.json geth init \ --datadir="" \ @@ -68,7 +67,8 @@ In the root of your working directory create a new directory: `scripts`. --rollup.sequencerhttp=$SEQUENCER_URL \ --nodiscover \ --syncmode=full \ - --maxpeers=0 + --maxpeers=0 \ + --beta.op-network=op-sepolia ``` Other Sequencer URLs can be found here: [Networks, Public RPC Endpoints, & APIs](../../useful-tools/networks.md). @@ -110,8 +110,8 @@ Other Sequencer URLs can be found here: [Networks, Public RPC Endpoints, & APIs] --l2.jwt-secret=./jwt.txt \ --network=$NET \ --rpc.addr=0.0.0.0 \ - --rpc.port=8547 - + --rpc.port=8547 \ + --network=op-sepolia ``` diff --git a/src/docs/useful-tools/networks.md b/src/docs/useful-tools/networks.md index bf927fc34..dd32ba32b 100644 --- a/src/docs/useful-tools/networks.md +++ b/src/docs/useful-tools/networks.md @@ -221,7 +221,7 @@ These parameters are mostly useful to people responsible for running and adminis - Note that there is no Bedrock Data Directory or Legacy Geth Data Directory required for running OP Sepolia nodes - [Configuration parameters](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/deploy-config/sepolia.json) -- todo: update link [Genesis.json File]() +- [Genesis.json File](https://networks.optimism.io/op-sepolia/genesis.json) - [Latest releases of `op-geth`](https://github.com/ethereum-optimism/op-geth/releases/latest) - [Latest release of `op-node`](https://github.com/ethereum-optimism/optimism/releases/latest) - Note: Unlike on OP Mainnet or OP Goerli, you do not need to run `legacy-geth` to run an archival OP Sepolia node.