Skip to content

Commit

Permalink
update node operator instructions
Browse files Browse the repository at this point in the history
OP Sepolia needs to be initialized with a genesis file.
  • Loading branch information
sbvegan committed Oct 23, 2023
1 parent 5302bb7 commit cbce67f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/docs/developers/bedrock/node-operator-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions src/docs/developers/nodes/testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <path to genesis JSON> -sL <URL to genesis JSON>
curl -o <path to genesis JSON> -sL https://networks.optimism.io/op-sepolia/genesis.json

geth init \
--datadir="<your data directory>" \
Expand Down Expand Up @@ -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).
Expand Down Expand Up @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion src/docs/useful-tools/networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit cbce67f

Please sign in to comment.