Skip to content

Commit

Permalink
Add mainnet config
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalex88 committed Feb 8, 2024
1 parent be3581e commit 19db402
Show file tree
Hide file tree
Showing 5 changed files with 96,250 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .env.SAMPLE
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Values you should probably change
OP_NODE_L1_ETH_RPC=https://ethereum.publicnode.com
OP_ENGINE_API_JWT=8dd7f05cd07b65c9bd2ea946c1903228a84ec51f29bdc35e96e580f345143f8a

# Op geth values
GETH_NETWORKID=252
GETH_DATADIR=/data
GETH_HTTP=true
GETH_HTTP_CORSDOMAIN=*
GETH_HTTP_VHOSTS=*
GETH_HTTP_ADDR=0.0.0.0
GETH_HTTP_PORT=8545
GETH_HTTP_API=web3,debug,eth,txpool,net
GETH_WS=true
GETH_WS_ORIGINS=*
GETH_WS_ADDR=0.0.0.0
GETH_WS_PORT=8546
GETH_WS_API=web3,debug,eth,txpool,net
GETH_SYNCMODE=full
GETH_GCMODE=archive
GETH_NODISCOVER=true
GETH_MAXPEERS=0
GETH_AUTHRPC_VHOSTS=*
GETH_AUTHRPC_ADDR=0.0.0.0
GETH_AUTHRPC_PORT=8551
GETH_AUTHRPC_JWTSECRET=/data/jwt
GETH_ROLLUP_DISABLETXPOOLGOSSIP=true
GETH_ROLLUP_SEQUENCERHTTP=https://rpc.mainnet.frax.com # Will be available at the time of the public launch

# Op node values
OP_NODE_L2_ENGINE_RPC=ws://mainnet-geth:8551
OP_NODE_ROLLUP_CONFIG=/data/rollup.json
OP_NODE_L2_ENGINE_AUTH=/data/jwt
OP_NODE_RPC_ADDR=0.0.0.0
OP_NODE_RPC_PORT=8545
OP_NODE_P2P_BOOTNODES=enr:-J24QPGxmNmQ6Gsofjwnaaqt-RvC-2te44hHSU_wFGvCBpdnGnAuW0hKBCwzarXEmLN0TfwilwX3xS8xjEd9sQRqKXqGAY1ok0P3gmlkgnY0gmlwhDa-pcmHb3BzdGFja4P8AQCJc2VjcDI1NmsxoQJA0echCE64KVt7m1lHfRF9_QgYxqIOSoPZ1UHcEArDu4N0Y3CCJAaDdWRwgiQG,enr:-J24QHPYu7uUXH4LCJ_pjHMD3fYhluZEgFRlewqOFFcja7ACaTDp4zG4GZBJdTPmLjsqskhTQa5ldKiVu4ypZYMzR_uGAY1ok_ABgmlkgnY0gmlwhCLvv1KHb3BzdGFja4P8AQCJc2VjcDI1NmsxoQOEemNzZL5buGmwlN2naXLtz4nauCqBFeFxdmi4RL4rDIN0Y3CCJAaDdWRwgiQG,enr:-J24QBujtfGNIiE6GJrCgXEKJMs1F11wd4Y8Uvx7ZFn3Z1tyR0erNcpiW5EYIQEKQX0kL9PLJUDHWZFiaHWOTBvFg5aGAY1ok5p8gmlkgnY0gmlwhDbD-tqHb3BzdGFja4P8AQCJc2VjcDI1NmsxoQLunzKLYJLvy6cWWkLgSSdLlILgSohrV8RT3tlKGwHBi4N0Y3CCJAaDdWRwgiQG
OP_NODE_METRICS_ENABLED=true
OP_NODE_METRICS_ADDR=0.0.0.0
OP_NODE_METRICS_PORT=7300
OP_NODE_DA_RPC=https://da-rpc.mainnet.frax.com

# OP_NODE_L1_TRUST_RPC=true
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*net/data
.env*
!.env.*.SAMPLE
!.env.*.SAMPLE
!.env.SAMPLE
38 changes: 38 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: "3.8"

services:
mainnet-geth:
image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-geth:v1.101305.1
ports:
- 8545:8545
- 8546:8546
entrypoint: ["geth-entrypoint"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8545"]
interval: 5s
timeout: 10s
retries: 100
env_file: .env
volumes:
- ./mainnet/data/op-geth:/data
- ./mainnet/genesis.json:/data/genesis.json:ro
- ./geth-entrypoint.sh:/bin/geth-entrypoint
mainnet-node:
image: ghcr.io/fraxfinance/fraxtal-op-node:v1.4.2-frax-1.0.0
ports:
- 7545:8545
- 9222:9222
- 9222:9222/udp
entrypoint: ["node-entrypoint"]
depends_on:
mainnet-geth:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8545"]
interval: 5s
timeout: 10s
retries: 100
env_file: .env
volumes:
- ./mainnet/rollup.json:/data/rollup.json:ro
- ./node-entrypoint.sh:/bin/node-entrypoint
Loading

0 comments on commit 19db402

Please sign in to comment.