a mode node
This commit is contained in:
108
op-mode-mainnet.yml
Normal file
108
op-mode-mainnet.yml
Normal file
@@ -0,0 +1,108 @@
|
||||
version: '3.1'
|
||||
|
||||
services:
|
||||
op-mode-mainnet: # this is Optimism's geth client
|
||||
#image: stakesquid/op-mode-mainnet:v0.1
|
||||
build:
|
||||
context: ./op
|
||||
args:
|
||||
OP_VERSION: v1.7.5
|
||||
GETH_VERSION: v1.101315.0
|
||||
expose:
|
||||
- 8545 # RPC / Websocket
|
||||
- 2483 # P2P TCP (currently unused)
|
||||
- 2483/udp # P2P UDP (currently unused)
|
||||
- 6060 # metrics
|
||||
ports:
|
||||
- "2483:2483"
|
||||
- "2483:2483/udp"
|
||||
command: [ "sh", "./geth-entrypoint" ]
|
||||
restart: always
|
||||
stop_grace_period: 3m
|
||||
volumes:
|
||||
- mode-mainnet:/data
|
||||
- .jwtsecret:/jwtsecret
|
||||
environment:
|
||||
- "GETH_GENESIS_FILE_PATH=/app/mainnet/mode/genesis.json"
|
||||
- "GETH_ROLLUP_SEQUENCERHTTP=https://rpc-mode-mainnet-0.t.conduit.xyz"
|
||||
- "GETH_GCMODE=full"
|
||||
- "GETH_NODISCOVER=true"
|
||||
- "GETH_STATE_SCHEME=hash"
|
||||
- "GETH_DB_ENGINE=pebble"
|
||||
- "P2P_PORT=2483"
|
||||
- "WS_PORT=8545"
|
||||
- "OP_NODE_L2_ENGINE_AUTH=/jwtsecret"
|
||||
- "HOST_IP=${IP}"
|
||||
- "GETH_OVERRIDE_CANYON=1704992401"
|
||||
- "GETH_OVERRIDE_DELTA=1708560000"
|
||||
- "GETH_OVERRIDE_ECOTONE=1710374401"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.middlewares.mode-stripprefix.stripprefix.prefixes=/mode-mainnet"
|
||||
- "traefik.http.services.mode.loadbalancer.server.port=8545"
|
||||
- "traefik.http.routers.mode.entrypoints=websecure"
|
||||
- "traefik.http.routers.mode.tls.certresolver=myresolver"
|
||||
- "traefik.http.routers.mode.rule=Host(`$DOMAIN`) && PathPrefix(`/mode-mainnet`)"
|
||||
- "traefik.http.routers.mode.middlewares=mode-stripprefix, ipwhitelist"
|
||||
networks:
|
||||
- chains
|
||||
|
||||
|
||||
op-mode-mainnet-node:
|
||||
#image: stakesquid/op-mode-mainnet:v0.1
|
||||
build:
|
||||
context: ./op
|
||||
args:
|
||||
OP_VERSION: v1.7.5
|
||||
GETH_VERSION: v1.101315.0
|
||||
depends_on:
|
||||
- op-mode-mainnet
|
||||
expose:
|
||||
- 8545 # RPC
|
||||
- 3306 # P2P TCP
|
||||
- 3306/udp # P2P UDP
|
||||
- 7300 # metrics
|
||||
- 6060 # pprof
|
||||
ports:
|
||||
- "3306:3306"
|
||||
- "3306:3306/udp"
|
||||
command: [ "sh", "./op-node-entrypoint" ]
|
||||
restart: always
|
||||
volumes:
|
||||
- .jwtsecret:/jwtsecret
|
||||
stop_grace_period: 30s
|
||||
environment:
|
||||
#- "OP_NODE_NETWORK=mode-mainnet-0"
|
||||
- "OP_NODE_L1_ETH_RPC=${MODE_MAINNET_L1_ENDPOINT}"
|
||||
- "OP_NODE_L2_ENGINE_AUTH_RAW=${JWTSECRET}"
|
||||
- "OP_NODE_L2_ENGINE_AUTH=/jwtsecret"
|
||||
- "OP_NODE_L2_ENGINE_RPC=http://op-mode-mainnet:8551"
|
||||
- "OP_NODE_LOG_LEVEL=info"
|
||||
- "OP_NODE_METRICS_ADDR=0.0.0.0"
|
||||
- "OP_NODE_METRICS_ENABLED=true"
|
||||
- "OP_NODE_METRICS_PORT=7300"
|
||||
- "OP_NODE_P2P_BOOTNODES=enode://cd3730ae0a02324d4f529b1a0b492a4047552025c48dc8c9d6685af386dbe8de7780cb35567f76b9542537e96b9a5b160bee79edbd15fefa5a90371c12e57bed@34.127.98.251:9222?discport=30301,enode://d25ce99435982b04d60c4b41ba256b84b888626db7bee45a9419382300fbe907359ae5ef250346785bff8d3b9d07cd3e017a27e2ee3cfda3bcbb0ba762ac9674@bootnode.conduit.xyz:0?discport=30301,enode://2d4e7e9d48f4dd4efe9342706dd1b0024681bd4c3300d021f86fc75eab7865d4e0cbec6fbc883f011cfd6a57423e7e2f6e104baad2b744c3cafaec6bc7dc92c1@34.65.43.171:0?discport=30305,enode://9d7a3efefe442351217e73b3a593bcb8efffb55b4807699972145324eab5e6b382152f8d24f6301baebbfb5ecd4127bd3faab2842c04cd432bdf50ba092f6645@34.65.109.126:0?discport=30305"
|
||||
- "OP_NODE_P2P_STATIC=/ip4/34.127.98.251/tcp/9222/p2p/16Uiu2HAmSU4jpfL8pPf6Z1bFS5SgNTAffNuvz1goX8MgTakkgAfP"
|
||||
- "OP_NODE_P2P_AGENT=conduit"
|
||||
- "OP_NODE_P2P_LISTEN_IP=0.0.0.0"
|
||||
- "OP_NODE_P2P_LISTEN_TCP_PORT=3306"
|
||||
- "OP_NODE_P2P_LISTEN_UDP_PORT=3306"
|
||||
- "OP_NODE_ROLLUP_CONFIG=/app/mainnet/mode/rollup.json"
|
||||
- "OP_NODE_RPC_ADDR=0.0.0.0"
|
||||
- "OP_NODE_P2P_ADVERTISE_IP=${IP}"
|
||||
- "OP_NODE_RPC_PORT=8545"
|
||||
- "OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log"
|
||||
- "OP_NODE_VERIFIER_L1_CONFS=4"
|
||||
- "OP_NODE_L1_RPC_MAX_BATCH_SIZE=${MODE_MAINNET_L1_BATCH_SIZE:-20}"
|
||||
- "OP_NODE_L1_RPC_RATE_LIMIT=${MODE_MAINNET_L1_RATE_LIMIT:-30}"
|
||||
- "OP_NODE_L1_RPC_KIND=${MODE_MAINNET_L1_ENDPOINT_KIND:-basic}"
|
||||
- "OP_NODE_L1_TRUST_RPC=${MODE_MAINNET_L1_ENDPOINT_TRUST:-false}"
|
||||
- "OP_NODE_L1_BEACON=${MODE_MAINNET_L1_BEACON_URL}"
|
||||
- "OP_NODE_OVERRIDE_CANYON=1704992401"
|
||||
- "OP_NODE_OVERRIDE_DELTA=1708560000"
|
||||
- "OP_NODE_OVERRIDE_ECOTONE=1710374401"
|
||||
networks:
|
||||
- chains
|
||||
|
||||
volumes:
|
||||
mode-mainnet:
|
||||
14472
op/mainnet/mode/genesis.json
Normal file
14472
op/mainnet/mode/genesis.json
Normal file
File diff suppressed because one or more lines are too long
29
op/mainnet/mode/rollup.json
Normal file
29
op/mainnet/mode/rollup.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"genesis": {
|
||||
"l1": {
|
||||
"hash": "0xf9b1b22a7ef9d13f063ea467bcb70fb6e9f29698ecb7366a2cdf5af2165cacee",
|
||||
"number": 18586927
|
||||
},
|
||||
"l2": {
|
||||
"hash": "0xb0f682e12fc555fd5ce8fce51a59a67d66a5b46be28611a168260a549dac8a9b",
|
||||
"number": 0
|
||||
},
|
||||
"l2_time": 1700167583,
|
||||
"system_config": {
|
||||
"batcherAddr": "0x99199a22125034c808ff20f377d91187e8050f2e",
|
||||
"overhead": "0x00000000000000000000000000000000000000000000000000000000000000bc",
|
||||
"scalar": "0x00000000000000000000000000000000000000000000000000000000000a6fe0",
|
||||
"gasLimit": 30000000
|
||||
}
|
||||
},
|
||||
"block_time": 2,
|
||||
"max_sequencer_drift": 600,
|
||||
"seq_window_size": 3600,
|
||||
"channel_timeout": 300,
|
||||
"l1_chain_id": 1,
|
||||
"l2_chain_id": 34443,
|
||||
"regolith_time": 0,
|
||||
"batch_inbox_address": "0x24e59d9d3bd73ccc28dc54062af7ef7bff58bd67",
|
||||
"deposit_contract_address": "0x8b34b14c7c7123459cf3076b8cb929be097d0c07",
|
||||
"l1_system_config_address": "0x5e6432f18bc5d497b1ab2288a025fbf9d69e2221"
|
||||
}
|
||||
Reference in New Issue
Block a user