Skip to content

Commit 3922aba

Browse files
author
Michael de Hoog
authored
Add mainnet config (#68)
1 parent 1889339 commit 3922aba

File tree

6 files changed

+14537
-4
lines changed

6 files changed

+14537
-4
lines changed

.env.mainnet

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
OP_GETH_GENESIS_FILE_PATH=mainnet/genesis-l2.json
2+
OP_GETH_SEQUENCER_HTTP=https://mainnet-sequencer.base.org
3+
# OP_GETH_ETH_STATS=nodename:secret@host:port # optional
4+
5+
OP_NODE_L1_ETH_RPC=https://1rpc.io/eth # [recommended] replace with your preferred L1 (Ethereum, not Base) node RPC URL
6+
OP_NODE_L2_ENGINE_AUTH=/tmp/engine-auth-jwt
7+
OP_NODE_L2_ENGINE_AUTH_RAW=688f5d737bad920bdfb2fc2f488d6b6209eebda1dae949a8de91398d932c517a # for localdev only
8+
OP_NODE_L2_ENGINE_RPC=http://geth:8551
9+
OP_NODE_LOG_LEVEL=info
10+
OP_NODE_METRICS_ADDR=0.0.0.0
11+
OP_NODE_METRICS_ENABLED=true
12+
OP_NODE_METRICS_PORT=7300
13+
OP_NODE_P2P_AGENT=base
14+
OP_NODE_P2P_BOOTNODES=enr:-J24QNz9lbrKbN4iSmmjtnr7SjUMk4zB7f1krHZcTZx-JRKZd0kA2gjufUROD6T3sOWDVDnFJRvqBBo62zuF-hYCohOGAYiOoEyEgmlkgnY0gmlwhAPniryHb3BzdGFja4OFQgCJc2VjcDI1NmsxoQKNVFlCxh_B-716tTs-h1vMzZkSs1FTu_OYTNjgufplG4N0Y3CCJAaDdWRwgiQG,enr:-J24QH-f1wt99sfpHy4c0QJM-NfmsIfmlLAMMcgZCUEgKG_BBYFc6FwYgaMJMQN5dsRBJApIok0jFn-9CS842lGpLmqGAYiOoDRAgmlkgnY0gmlwhLhIgb2Hb3BzdGFja4OFQgCJc2VjcDI1NmsxoQJ9FTIv8B9myn1MWaC_2lJ-sMoeCDkusCsk4BYHjjCq04N0Y3CCJAaDdWRwgiQG,enr:-J24QDXyyxvQYsd0yfsN0cRr1lZ1N11zGTplMNlW4xNEc7LkPXh0NAJ9iSOVdRO95GPYAIc6xmyoCCG6_0JxdL3a0zaGAYiOoAjFgmlkgnY0gmlwhAPckbGHb3BzdGFja4OFQgCJc2VjcDI1NmsxoQJwoS7tzwxqXSyFL7g0JM-KWVbgvjfB8JA__T7yY_cYboN0Y3CCJAaDdWRwgiQG,enr:-J24QHmGyBwUZXIcsGYMaUqGGSl4CFdx9Tozu-vQCn5bHIQbR7On7dZbU61vYvfrJr30t0iahSqhc64J46MnUO2JvQaGAYiOoCKKgmlkgnY0gmlwhAPnCzSHb3BzdGFja4OFQgCJc2VjcDI1NmsxoQINc4fSijfbNIiGhcgvwjsjxVFJHUstK9L1T8OTKUjgloN0Y3CCJAaDdWRwgiQG,enr:-J24QG3ypT4xSu0gjb5PABCmVxZqBjVw9ca7pvsI8jl4KATYAnxBmfkaIuEqy9sKvDHKuNCsy57WwK9wTt2aQgcaDDyGAYiOoGAXgmlkgnY0gmlwhDbGmZaHb3BzdGFja4OFQgCJc2VjcDI1NmsxoQIeAK_--tcLEiu7HvoUlbV52MspE0uCocsx1f_rYvRenIN0Y3CCJAaDdWRwgiQG
15+
OP_NODE_P2P_LISTEN_IP=0.0.0.0
16+
OP_NODE_P2P_LISTEN_TCP_PORT=9222
17+
OP_NODE_P2P_LISTEN_UDP_PORT=9222
18+
OP_NODE_ROLLUP_CONFIG=mainnet/rollup.json
19+
OP_NODE_RPC_ADDR=0.0.0.0
20+
OP_NODE_RPC_PORT=8545
21+
OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log
22+
OP_NODE_VERIFIER_L1_CONFS=4
23+
# OP_NODE_L1_TRUST_RPC allows for faster syncing, but should be used *only* if your L1 RPC node
24+
# is fully trusted. It also allows op-node to work with clients such as Erigon that do not
25+
# support storage proofs.
26+
# OP_NODE_L1_TRUST_RPC=true

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ COPY --from=geth /app/build/bin/geth ./
3737
COPY geth-entrypoint .
3838
COPY op-node-entrypoint .
3939
COPY goerli ./goerli
40+
COPY mainnet ./mainnet

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@ If you encounter problems with your node, please open a [GitHub issue](https://g
4545
| Ethereum Network | Status |
4646
| ---------------- | ------ |
4747
| Goerli testnet ||
48-
| Mainnet | 🚧 |
48+
| Mainnet | |
4949

5050
### Usage
5151

5252
1. Ensure you have an Ethereum L1 full node RPC available (not Base), and set `OP_NODE_L1_ETH_RPC` (in the `.env.*` file if using docker-compose). If running your own L1 node, it needs to be synced before Base will be able to fully sync.
53-
2. Run:
53+
2. Uncomment the line relevant to your network (`.env.goerli` or `.env.mainet`) under the 2 `env_file` keys in `docker-compose.yml`.
54+
3. Run:
5455

5556
```
5657
docker compose up --build

docker-compose.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ services:
99
- 7301:6060 # metrics
1010
command: [ "sh", "./geth-entrypoint" ]
1111
env_file:
12-
- .env.goerli
12+
# select your network here:
13+
# - .env.goerli
14+
# - .env.mainnet
1315
node:
1416
build: .
1517
depends_on:
@@ -22,4 +24,6 @@ services:
2224
- 6060:6060 # pprof
2325
command: [ "sh", "./op-node-entrypoint" ]
2426
env_file:
25-
- .env.goerli
27+
# select your network here:
28+
# - .env.goerli
29+
# - .env.mainnet

0 commit comments

Comments
 (0)