Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Op sepolia updates #948

Merged
merged 2 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 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 [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,7 +73,7 @@ Instructions for each initialization method are below. If you're spinning up an
```bash
#!/bin/sh
FILE=/$DATADIR/genesis.json
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 All @@ -84,10 +84,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
9 changes: 5 additions & 4 deletions src/docs/developers/nodes/testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +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
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 @@ -67,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 @@ -109,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
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)
- [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.
Loading