Skip to content

Commit

Permalink
adding todos
Browse files Browse the repository at this point in the history
  • Loading branch information
sbvegan committed Oct 18, 2023
1 parent de53e0d commit 5302bb7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 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 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 todo: update with link [genesis file]() 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,6 +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

if [ ! -s $FILE ]; then
Expand All @@ -84,10 +85,11 @@ else
fi
```

::: danger CLI Flag Requirements
Required: `--sepolia`
::: danger OP Sepolia CLI Flag Requirements

Do not set: `--rollup.historicalrpc` and `rollup.historicalrpctimeout`
- `op-node` requires: `--network=op-sepolia`
- `op-geth` requires: `--beta.op-network=op-sepolia`
- Do not set: `--rollup.historicalrpc` or `rollup.historicalrpctimeout`
:::

#### Initialization via Data Directory
Expand Down
1 change: 1 addition & 0 deletions src/docs/developers/nodes/testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +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>

geth init \
Expand Down
1 change: 1 addition & 0 deletions src/docs/useful-tools/networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +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]()
- [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 5302bb7

Please sign in to comment.