Compare commits
1 Commits
issue-3182
...
issue-2776
| Author | SHA1 | Date | |
|---|---|---|---|
| d279ff7274 |
@@ -45,7 +45,7 @@ services:
|
||||
arc-mainnet-archive-sockets-init:
|
||||
image: debian:bookworm-slim
|
||||
entrypoint: [/bin/sh, -c]
|
||||
command: [chown 999:999 /sockets]
|
||||
command: [rm -f /sockets/*.ipc && chown 999:999 /sockets]
|
||||
restart: no
|
||||
depends_on:
|
||||
arc-mainnet-archive-consensus-init:
|
||||
|
||||
@@ -45,7 +45,7 @@ services:
|
||||
arc-mainnet-sockets-init:
|
||||
image: debian:bookworm-slim
|
||||
entrypoint: [/bin/sh, -c]
|
||||
command: [chown 999:999 /sockets]
|
||||
command: [rm -f /sockets/*.ipc && chown 999:999 /sockets]
|
||||
restart: no
|
||||
depends_on:
|
||||
arc-mainnet-consensus-init:
|
||||
|
||||
@@ -45,7 +45,7 @@ services:
|
||||
arc-testnet-archive-sockets-init:
|
||||
image: debian:bookworm-slim
|
||||
entrypoint: [/bin/sh, -c]
|
||||
command: [chown 999:999 /sockets]
|
||||
command: [rm -f /sockets/*.ipc && chown 999:999 /sockets]
|
||||
restart: no
|
||||
depends_on:
|
||||
arc-testnet-archive-consensus-init:
|
||||
|
||||
@@ -45,7 +45,7 @@ services:
|
||||
arc-testnet-sockets-init:
|
||||
image: debian:bookworm-slim
|
||||
entrypoint: [/bin/sh, -c]
|
||||
command: [chown 999:999 /sockets]
|
||||
command: [rm -f /sockets/*.ipc && chown 999:999 /sockets]
|
||||
restart: no
|
||||
depends_on:
|
||||
arc-testnet-consensus-init:
|
||||
|
||||
@@ -45,7 +45,7 @@ services:
|
||||
arc-testnet-sockets-init:
|
||||
image: debian:bookworm-slim
|
||||
entrypoint: [/bin/sh, -c]
|
||||
command: [chown 999:999 /sockets]
|
||||
command: [rm -f /sockets/*.ipc && chown 999:999 /sockets]
|
||||
restart: no
|
||||
depends_on:
|
||||
arc-testnet-consensus-init:
|
||||
|
||||
@@ -323,7 +323,9 @@ detect_client_type() {
|
||||
local node_name="$1"
|
||||
local name_lower=$(echo "$node_name" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
if [[ "$name_lower" == *"geth"* ]]; then
|
||||
if [[ "$name_lower" == *"op-geth"* ]]; then
|
||||
echo "op-geth"
|
||||
elif [[ "$name_lower" == *"geth"* ]]; then
|
||||
echo "geth"
|
||||
elif [[ "$name_lower" == *"reth"* ]]; then
|
||||
echo "reth"
|
||||
@@ -351,7 +353,7 @@ add_static_peer() {
|
||||
# Geth supports admin_addStaticPeer
|
||||
method="admin_addStaticPeer"
|
||||
else
|
||||
# Reth and most other clients use admin_addPeer
|
||||
# Reth, op-geth, and most other clients use admin_addPeer
|
||||
method="admin_addPeer"
|
||||
fi
|
||||
|
||||
|
||||
@@ -267,7 +267,7 @@ services:
|
||||
- EIGENDA_PROXY_S3_CREDENTIAL_TYPE=public
|
||||
- EIGENDA_PROXY_S3_ENDPOINT=storage.googleapis.com
|
||||
- EIGENDA_PROXY_S3_PATH=blobs/
|
||||
- EIGENDA_PROXY_STORAGE_BACKENDS_TO_ENABLE=V2
|
||||
- EIGENDA_PROXY_STORAGE_BACKENDS_TO_ENABLE=V1,V2
|
||||
- EIGENDA_PROXY_STORAGE_FALLBACK_TARGETS=s3
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
|
||||
@@ -266,7 +266,7 @@ services:
|
||||
- EIGENDA_PROXY_S3_CREDENTIAL_TYPE=public
|
||||
- EIGENDA_PROXY_S3_ENDPOINT=storage.googleapis.com
|
||||
- EIGENDA_PROXY_S3_PATH=blobs/
|
||||
- EIGENDA_PROXY_STORAGE_BACKENDS_TO_ENABLE=V2
|
||||
- EIGENDA_PROXY_STORAGE_BACKENDS_TO_ENABLE=V1,V2
|
||||
- EIGENDA_PROXY_STORAGE_FALLBACK_TARGETS=s3
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
|
||||
@@ -264,7 +264,7 @@ services:
|
||||
- EIGENDA_PROXY_S3_CREDENTIAL_TYPE=public
|
||||
- EIGENDA_PROXY_S3_ENDPOINT=storage.googleapis.com
|
||||
- EIGENDA_PROXY_S3_PATH=blobs/
|
||||
- EIGENDA_PROXY_STORAGE_BACKENDS_TO_ENABLE=V2
|
||||
- EIGENDA_PROXY_STORAGE_BACKENDS_TO_ENABLE=V1,V2
|
||||
- EIGENDA_PROXY_STORAGE_FALLBACK_TARGETS=s3
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
|
||||
@@ -264,7 +264,7 @@ services:
|
||||
- EIGENDA_PROXY_S3_CREDENTIAL_TYPE=public
|
||||
- EIGENDA_PROXY_S3_ENDPOINT=storage.googleapis.com
|
||||
- EIGENDA_PROXY_S3_PATH=blobs/
|
||||
- EIGENDA_PROXY_STORAGE_BACKENDS_TO_ENABLE=V2
|
||||
- EIGENDA_PROXY_STORAGE_BACKENDS_TO_ENABLE=V1,V2
|
||||
- EIGENDA_PROXY_STORAGE_FALLBACK_TARGETS=s3
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
|
||||
@@ -45,6 +45,9 @@ services:
|
||||
ulimits:
|
||||
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||
user: root
|
||||
ports:
|
||||
- 13290:13290
|
||||
- 13290:13290/udp
|
||||
expose:
|
||||
- 8545
|
||||
- 6060
|
||||
@@ -61,6 +64,7 @@ services:
|
||||
- GETH_ROLLUP_SEQUENCERHTTP=https://rpc.mainnet.frax.com
|
||||
entrypoint: /bin/sh -c '[ -f /config/genesis.json ] && geth --db.engine=leveldb --gcmode=archive --datadir /data init --state.scheme=hash /config/genesis.json; [ -f /config/static-nodes.json ] && cp -f /config/static-nodes.json /data/static-nodes.json; exec geth "$@"' --
|
||||
command:
|
||||
- --bootnodes=enr:-J24QI8QR7VIgvQFuvLl09b9ocugoQ1WkS_AOMWKFgNX48-4P1hjgDKGeMFXZmKtfjYA2aEehxKT066riaktnxhh92OGAY5Sw_QsgmlkgnY0gmlwhCztZu2Hb3BzdGFja4P8AQCJc2VjcDI1NmsxoQM2KM0mkdH97Ze8AqwxLeqc934PKj8-xoKsyP6mAptWwIN0Y3CCdl2DdWRwgnZd,enr:-J24QGD1J-g2EPY9b7XiuwLhIoGocVp2qx2gWSfDI_CdftiPSHlgi7G6LtzkQlDskuSvRj4OXTg3vXLISubphXNNhqyGAY5Sw8GxgmlkgnY0gmlwhCzW_iGHb3BzdGFja4P8AQCJc2VjcDI1NmsxoQPvMYlJHJUsEyciuJCTkKHLE2ogZ6cs2xuPI28CGq0CTIN0Y3CCdl2DdWRwgnZd,enr:-J24QCA5I3xroUXt7Ge_Kf04VCRBnI-GbZeyBxOkkpIDGGLrVsonrbngQG1hAEnufRb1TgS6sNFCGtaZ2ZpRx7AgciGGAY5SxEy0gmlkgnY0gmlwhCLzRQyHb3BzdGFja4P8AQCJc2VjcDI1NmsxoQOaHzrtPQWYcwAcFJWFrbGlbNUsBC0VEhCcH02RbgEIwIN0Y3CCdl2DdWRwgnZd
|
||||
- --datadir=/data
|
||||
- --db.engine=leveldb
|
||||
- --gcmode=archive
|
||||
@@ -68,8 +72,9 @@ services:
|
||||
- --metrics
|
||||
- --metrics.addr=0.0.0.0
|
||||
- --metrics.port=6060
|
||||
- --nat=extip:${IP}
|
||||
- --networkid=252
|
||||
- --nodiscover
|
||||
- --port=13290
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.txfeecap=0
|
||||
- --state.scheme=hash
|
||||
@@ -140,7 +145,7 @@ services:
|
||||
- OP_NODE_RPC_ADDR=0.0.0.0
|
||||
- OP_NODE_RPC_PORT=9545
|
||||
- OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log
|
||||
- OP_NODE_SYNCMODE=consensus-layer
|
||||
- OP_NODE_SYNCMODE=execution-layer
|
||||
- OP_NODE_VERIFIER_L1_CONFS=0
|
||||
entrypoint: [op-node]
|
||||
restart: unless-stopped
|
||||
|
||||
@@ -45,6 +45,9 @@ services:
|
||||
ulimits:
|
||||
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||
user: root
|
||||
ports:
|
||||
- 10282:10282
|
||||
- 10282:10282/udp
|
||||
expose:
|
||||
- 8545
|
||||
- 6060
|
||||
@@ -61,6 +64,7 @@ services:
|
||||
- GETH_ROLLUP_SEQUENCERHTTP=https://rpc.mainnet.frax.com
|
||||
entrypoint: /bin/sh -c '[ -f /config/genesis.json ] && geth --db.engine=pebble --gcmode=full --datadir /data init --state.scheme=path /config/genesis.json; [ -f /config/static-nodes.json ] && cp -f /config/static-nodes.json /data/static-nodes.json; exec geth "$@"' --
|
||||
command:
|
||||
- --bootnodes=enr:-J24QI8QR7VIgvQFuvLl09b9ocugoQ1WkS_AOMWKFgNX48-4P1hjgDKGeMFXZmKtfjYA2aEehxKT066riaktnxhh92OGAY5Sw_QsgmlkgnY0gmlwhCztZu2Hb3BzdGFja4P8AQCJc2VjcDI1NmsxoQM2KM0mkdH97Ze8AqwxLeqc934PKj8-xoKsyP6mAptWwIN0Y3CCdl2DdWRwgnZd,enr:-J24QGD1J-g2EPY9b7XiuwLhIoGocVp2qx2gWSfDI_CdftiPSHlgi7G6LtzkQlDskuSvRj4OXTg3vXLISubphXNNhqyGAY5Sw8GxgmlkgnY0gmlwhCzW_iGHb3BzdGFja4P8AQCJc2VjcDI1NmsxoQPvMYlJHJUsEyciuJCTkKHLE2ogZ6cs2xuPI28CGq0CTIN0Y3CCdl2DdWRwgnZd,enr:-J24QCA5I3xroUXt7Ge_Kf04VCRBnI-GbZeyBxOkkpIDGGLrVsonrbngQG1hAEnufRb1TgS6sNFCGtaZ2ZpRx7AgciGGAY5SxEy0gmlkgnY0gmlwhCLzRQyHb3BzdGFja4P8AQCJc2VjcDI1NmsxoQOaHzrtPQWYcwAcFJWFrbGlbNUsBC0VEhCcH02RbgEIwIN0Y3CCdl2DdWRwgnZd
|
||||
- --datadir=/data
|
||||
- --db.engine=pebble
|
||||
- --gcmode=full
|
||||
@@ -68,12 +72,13 @@ services:
|
||||
- --metrics
|
||||
- --metrics.addr=0.0.0.0
|
||||
- --metrics.port=6060
|
||||
- --nat=extip:${IP}
|
||||
- --networkid=252
|
||||
- --nodiscover
|
||||
- --port=10282
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.txfeecap=0
|
||||
- --state.scheme=path
|
||||
- --syncmode=full
|
||||
- --syncmode=snap
|
||||
- --http
|
||||
- --http.addr=0.0.0.0
|
||||
- --http.api=eth,net,web3,debug,admin,txpool,engine
|
||||
@@ -140,7 +145,7 @@ services:
|
||||
- OP_NODE_RPC_ADDR=0.0.0.0
|
||||
- OP_NODE_RPC_PORT=9545
|
||||
- OP_NODE_SNAPSHOT_LOG=/tmp/op-node-snapshot-log
|
||||
- OP_NODE_SYNCMODE=consensus-layer
|
||||
- OP_NODE_SYNCMODE=execution-layer
|
||||
- OP_NODE_VERIFIER_L1_CONFS=0
|
||||
entrypoint: [op-node]
|
||||
restart: unless-stopped
|
||||
|
||||
@@ -82,6 +82,7 @@ PEER_COUNT="$(echo "$PEERS_JSON" | jq -r '.result | length' 2>/dev/null || echo
|
||||
NAME_LC="$(echo "$CLIENT_NAME" | tr '[:upper:]' '[:lower:]')"
|
||||
CLIENT_TYPE="unknown"
|
||||
case "$NAME_LC" in
|
||||
*op-geth*) CLIENT_TYPE="op-geth" ;;
|
||||
*geth*) CLIENT_TYPE="geth" ;;
|
||||
*reth*) CLIENT_TYPE="reth" ;;
|
||||
*erigon*) CLIENT_TYPE="erigon" ;;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
# peer-reinject.sh — generic .after-start hook: re-seed peers from peer-capture state.
|
||||
# Uses admin_addStaticPeer for geth, admin_addPeer otherwise (connect-peers.sh).
|
||||
# Uses admin_addStaticPeer for geth, admin_addPeer for op-geth and others (connect-peers.sh).
|
||||
# In-network vantage (rpc_chains). Idempotent; best-effort (never fails the restart).
|
||||
#
|
||||
# Seed order (one path for us and customers):
|
||||
|
||||
@@ -8,13 +8,20 @@ RUN chmod +x /usr/local/bin/init.sh
|
||||
|
||||
ARG ZERO_GRAVITY_VERSION
|
||||
ARG ZERO_GRAVITY_CHAIN_SPEC
|
||||
# Use 0gchain-NG for all current 0G networks (mainnet and testnets)
|
||||
RUN curl -sL https://github.com/0gfoundation/0gchain-NG/releases/download/v${ZERO_GRAVITY_VERSION}/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}.tar.gz -o /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}.tar.gz
|
||||
RUN if [ "${ZERO_GRAVITY_CHAIN_SPEC}" = "aristotle" ]; then \
|
||||
curl -sL https://github.com/0gfoundation/0gchain-Aristotle/releases/download/${ZERO_GRAVITY_VERSION}/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}.tar.gz -o /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}.tar.gz; \
|
||||
else \
|
||||
curl -sL https://github.com/0gfoundation/0gchain-NG/releases/download/v${ZERO_GRAVITY_VERSION}/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}.tar.gz -o /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}.tar.gz; \
|
||||
fi
|
||||
RUN tar -xzf /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}.tar.gz -C /tmp
|
||||
RUN mkdir -p /0g && \
|
||||
cp -a /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}/* /0g/ 2>/dev/null || true; \
|
||||
cp -a /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}/.[^.]* /0g/ 2>/dev/null || true; \
|
||||
rm -rf /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}
|
||||
RUN if [ "${ZERO_GRAVITY_CHAIN_SPEC}" = "galileo" ]; then \
|
||||
mv /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}/rpc /0g; \
|
||||
else \
|
||||
mkdir -p /0g && \
|
||||
cp -a /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}/* /0g/ 2>/dev/null || true; \
|
||||
cp -a /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}/.[^.]* /0g/ 2>/dev/null || true; \
|
||||
rm -rf /tmp/${ZERO_GRAVITY_CHAIN_SPEC}-v${ZERO_GRAVITY_VERSION}; \
|
||||
fi
|
||||
|
||||
RUN chmod +x /0g/bin/0gchaind
|
||||
RUN chmod +x /0g/bin/geth
|
||||
|
||||
Reference in New Issue
Block a user