From 499275ea84f809fa2fa286cd511518ede0b6ca19 Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Tue, 30 Jun 2026 06:04:29 +0000 Subject: [PATCH] =?UTF-8?q?arc:=20add=20mainnet=20(chain=205042)=20?= =?UTF-8?q?=E2=80=94=20reth=20EL=20+=20malachite=20CL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mirror arc-testnet for mainnet: --chain=arc-mainnet (bundled genesis, chainspec.rs ARC_SUPPORTED), drpc chain 'arc' (CHAIN_ARC__MAINNET), forwarder rpc.arc.network. malachite follows rpc.arc.network + arc.drpc.org (testnet endpoints are testnet-only in Circle's docs). Generates arc/reth/arc-mainnet-reth-{pruned,archive}-trace.yml. --- arc/reth/arc-mainnet-reth-archive-trace.yml | 180 +++++++++++++++++++ arc/reth/arc-mainnet-reth-pruned-trace.yml | 181 ++++++++++++++++++++ compose_registry.json | 36 ++++ 3 files changed, 397 insertions(+) create mode 100644 arc/reth/arc-mainnet-reth-archive-trace.yml create mode 100644 arc/reth/arc-mainnet-reth-pruned-trace.yml diff --git a/arc/reth/arc-mainnet-reth-archive-trace.yml b/arc/reth/arc-mainnet-reth-archive-trace.yml new file mode 100644 index 00000000..85650841 --- /dev/null +++ b/arc/reth/arc-mainnet-reth-archive-trace.yml @@ -0,0 +1,180 @@ +--- +x-logging-defaults: &logging-defaults + driver: json-file + options: + max-size: "10m" + max-file: "3" + +# Usage: +# +# mkdir rpc && cd rpc +# +# git init +# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git +# git fetch origin vibe +# git checkout origin/vibe +# +# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret +# +# env +# ... +# IP=$(curl ipinfo.io/ip) +# DOMAIN=${IP}.traefik.me +# COMPOSE_FILE=base.yml:rpc.yml:arc/reth/arc-mainnet-reth-archive-trace.yml +# +# docker compose up -d +# +# curl -X POST https://${IP}.traefik.me/arc-mainnet-archive \ +# -H "Content-Type: application/json" \ +# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' + +services: + arc-mainnet-archive-consensus-init: + image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_MAINNET_CONSENSUS_VERSION:-0.7.2} + user: 0:0 + entrypoint: [/usr/local/bin/arc-node-consensus, init] + command: + - --home=/data/consensus + restart: no + networks: + - chains + volumes: + - ${ARC_MAINNET_RETH_ARCHIVE_TRACE_CONSENSUS_DATA:-arc-mainnet-reth-archive-trace-consensus}:/data/consensus + logging: *logging-defaults + + arc-mainnet-archive-sockets-init: + image: debian:bookworm-slim + entrypoint: [/bin/sh, -c] + command: [rm -f /sockets/*.ipc && chown 999:999 /sockets] + restart: no + depends_on: + arc-mainnet-archive-consensus-init: + condition: service_completed_successfully + networks: + - chains + volumes: + - arc-mainnet-reth-archive-trace-sockets:/sockets + logging: *logging-defaults + + arc-mainnet-archive: + image: ${ARC_RETH_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-execution}:${ARC_MAINNET_RETH_VERSION:-0.7.2} + sysctls: + # TCP Performance + net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle + net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache + net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers + net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers + net.core.somaxconn: 32768 # Higher connection queue + # Memory/Connection Management + # net.core.netdev_max_backlog: 50000 # Increase network buffer + net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests + net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets + ulimits: + nofile: 1048576 # Max open files (for RPC/WS connections) + memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX) + user: 0:0 + expose: + - 8545 + - 9001 + entrypoint: [/usr/local/bin/arc-node-execution, node] + command: + - --auth-ipc + - --auth-ipc.path=/sockets/auth.ipc + - --chain=arc-mainnet + - --datadir=/data/execution + - --disable-discovery + - --enable-arc-rpc + - --http + - --http.addr=0.0.0.0 + - --http.api=eth,net,web3,txpool,trace,debug + - --http.port=8545 + - --ipcpath=/sockets/reth.ipc + - --log.file.directory=/data/execution/logs + - --metrics=0.0.0.0:9001 + - --rpc.forwarder=https://rpc.arc.network/ + restart: unless-stopped + stop_grace_period: 5m + depends_on: + arc-mainnet-archive-sockets-init: + condition: service_completed_successfully + networks: + - chains + volumes: + - ${ARC_MAINNET_RETH_ARCHIVE_TRACE_EXECUTION_DATA:-arc-mainnet-reth-archive-trace-execution}:/data/execution + - /slowdisk:/slowdisk + - arc-mainnet-reth-archive-trace-sockets:/sockets + logging: *logging-defaults + labels: + - prometheus-scrape.enabled=true + - prometheus-scrape.port=9001 + - prometheus-scrape.path=/metrics + - traefik.enable=true + - traefik.http.middlewares.arc-mainnet-reth-archive-trace-stripprefix.stripprefix.prefixes=/arc-mainnet-archive + - traefik.http.services.arc-mainnet-reth-archive-trace.loadbalancer.server.port=8545 + - ${NO_SSL:-traefik.http.routers.arc-mainnet-reth-archive-trace.entrypoints=websecure} + - ${NO_SSL:-traefik.http.routers.arc-mainnet-reth-archive-trace.tls.certresolver=myresolver} + - ${NO_SSL:-traefik.http.routers.arc-mainnet-reth-archive-trace.rule=Host(`$DOMAIN`) && (Path(`/arc-mainnet-archive`) || Path(`/arc-mainnet-archive/`))} + - ${NO_SSL:+traefik.http.routers.arc-mainnet-reth-archive-trace.rule=Path(`/arc-mainnet-archive`) || Path(`/arc-mainnet-archive/`)} + - traefik.http.routers.arc-mainnet-reth-archive-trace.middlewares=arc-mainnet-reth-archive-trace-stripprefix, ipallowlist + shm_size: 2gb + + arc-mainnet-archive-node: + image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_MAINNET_CONSENSUS_VERSION:-0.7.2} + user: 0:0 + expose: + - 31000 + - 29000 + entrypoint: [/usr/local/bin/arc-node-consensus, start] + command: + - --eth-socket=/sockets/reth.ipc + - --execution-persistence-backpressure + - --execution-persistence-backpressure-threshold=50 + - --execution-socket=/sockets/auth.ipc + - --follow + - --follow.endpoint=https://arc.drpc.org,wss=arc.drpc.org + - --follow.endpoint=https://rpc.arc.network,wss=rpc.arc.network + - --full + - --home=/data/consensus + - --metrics=0.0.0.0:29000 + - --rpc.addr=0.0.0.0:31000 + restart: unless-stopped + stop_grace_period: 5m + depends_on: + arc-mainnet-archive-consensus-init: + condition: service_completed_successfully + arc-mainnet-archive: + condition: service_started + restart: true + networks: + - chains + volumes: + - ${ARC_MAINNET_RETH_ARCHIVE_TRACE_CONSENSUS_DATA:-arc-mainnet-reth-archive-trace-consensus}:/data/consensus + - arc-mainnet-reth-archive-trace-sockets:/sockets + logging: *logging-defaults + labels: + - prometheus-scrape.enabled=true + - prometheus-scrape.port=29000 + +volumes: + arc-mainnet-reth-archive-trace-consensus: + arc-mainnet-reth-archive-trace-execution: + arc-mainnet-reth-archive-trace-sockets: + +x-upstreams: + - id: $${ID} + labels: + provider: $${PROVIDER} + connection: + generic: + rpc: + url: $${RPC_URL} + chain: arc + method-groups: + enabled: + - debug + - filter + - trace + methods: + enabled: + - name: txpool_content +... \ No newline at end of file diff --git a/arc/reth/arc-mainnet-reth-pruned-trace.yml b/arc/reth/arc-mainnet-reth-pruned-trace.yml new file mode 100644 index 00000000..4202e8b0 --- /dev/null +++ b/arc/reth/arc-mainnet-reth-pruned-trace.yml @@ -0,0 +1,181 @@ +--- +x-logging-defaults: &logging-defaults + driver: json-file + options: + max-size: "10m" + max-file: "3" + +# Usage: +# +# mkdir rpc && cd rpc +# +# git init +# git remote add origin https://github.com/StakeSquid/ethereum-rpc-docker.git +# git fetch origin vibe +# git checkout origin/vibe +# +# docker run --rm alpine sh -c "printf '0x'; head -c32 /dev/urandom | xxd -p -c 64" > .jwtsecret +# +# env +# ... +# IP=$(curl ipinfo.io/ip) +# DOMAIN=${IP}.traefik.me +# COMPOSE_FILE=base.yml:rpc.yml:arc/reth/arc-mainnet-reth-pruned-trace.yml +# +# docker compose up -d +# +# curl -X POST https://${IP}.traefik.me/arc-mainnet \ +# -H "Content-Type: application/json" \ +# --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' + +services: + arc-mainnet-consensus-init: + image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_MAINNET_CONSENSUS_VERSION:-0.7.2} + user: 0:0 + entrypoint: [/usr/local/bin/arc-node-consensus, init] + command: + - --home=/data/consensus + restart: no + networks: + - chains + volumes: + - ${ARC_MAINNET_RETH_PRUNED_TRACE_CONSENSUS_DATA:-arc-mainnet-reth-pruned-trace-consensus}:/data/consensus + logging: *logging-defaults + + arc-mainnet-sockets-init: + image: debian:bookworm-slim + entrypoint: [/bin/sh, -c] + command: [rm -f /sockets/*.ipc && chown 999:999 /sockets] + restart: no + depends_on: + arc-mainnet-consensus-init: + condition: service_completed_successfully + networks: + - chains + volumes: + - arc-mainnet-reth-pruned-trace-sockets:/sockets + logging: *logging-defaults + + arc-mainnet: + image: ${ARC_RETH_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-execution}:${ARC_MAINNET_RETH_VERSION:-0.7.2} + sysctls: + # TCP Performance + net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle + net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache + net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers + net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers + net.core.somaxconn: 32768 # Higher connection queue + # Memory/Connection Management + # net.core.netdev_max_backlog: 50000 # Increase network buffer + net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests + net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets + ulimits: + nofile: 1048576 # Max open files (for RPC/WS connections) + memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX) + user: 0:0 + expose: + - 8545 + - 9001 + entrypoint: [/usr/local/bin/arc-node-execution, node] + command: + - --auth-ipc + - --auth-ipc.path=/sockets/auth.ipc + - --chain=arc-mainnet + - --datadir=/data/execution + - --disable-discovery + - --enable-arc-rpc + - --full + - --http + - --http.addr=0.0.0.0 + - --http.api=eth,net,web3,txpool,trace,debug + - --http.port=8545 + - --ipcpath=/sockets/reth.ipc + - --log.file.directory=/data/execution/logs + - --metrics=0.0.0.0:9001 + - --rpc.forwarder=https://rpc.arc.network/ + restart: unless-stopped + stop_grace_period: 5m + depends_on: + arc-mainnet-sockets-init: + condition: service_completed_successfully + networks: + - chains + volumes: + - ${ARC_MAINNET_RETH_PRUNED_TRACE_EXECUTION_DATA:-arc-mainnet-reth-pruned-trace-execution}:/data/execution + - /slowdisk:/slowdisk + - arc-mainnet-reth-pruned-trace-sockets:/sockets + logging: *logging-defaults + labels: + - prometheus-scrape.enabled=true + - prometheus-scrape.port=9001 + - prometheus-scrape.path=/metrics + - traefik.enable=true + - traefik.http.middlewares.arc-mainnet-reth-pruned-trace-stripprefix.stripprefix.prefixes=/arc-mainnet + - traefik.http.services.arc-mainnet-reth-pruned-trace.loadbalancer.server.port=8545 + - ${NO_SSL:-traefik.http.routers.arc-mainnet-reth-pruned-trace.entrypoints=websecure} + - ${NO_SSL:-traefik.http.routers.arc-mainnet-reth-pruned-trace.tls.certresolver=myresolver} + - ${NO_SSL:-traefik.http.routers.arc-mainnet-reth-pruned-trace.rule=Host(`$DOMAIN`) && (Path(`/arc-mainnet`) || Path(`/arc-mainnet/`))} + - ${NO_SSL:+traefik.http.routers.arc-mainnet-reth-pruned-trace.rule=Path(`/arc-mainnet`) || Path(`/arc-mainnet/`)} + - traefik.http.routers.arc-mainnet-reth-pruned-trace.middlewares=arc-mainnet-reth-pruned-trace-stripprefix, ipallowlist + shm_size: 2gb + + arc-mainnet-node: + image: ${ARC_CONSENSUS_IMAGE:-docker.cloudsmith.io/circle/arc-network/arc-consensus}:${ARC_MAINNET_CONSENSUS_VERSION:-0.7.2} + user: 0:0 + expose: + - 31000 + - 29000 + entrypoint: [/usr/local/bin/arc-node-consensus, start] + command: + - --eth-socket=/sockets/reth.ipc + - --execution-persistence-backpressure + - --execution-persistence-backpressure-threshold=50 + - --execution-socket=/sockets/auth.ipc + - --follow + - --follow.endpoint=https://arc.drpc.org,wss=arc.drpc.org + - --follow.endpoint=https://rpc.arc.network,wss=rpc.arc.network + - --full + - --home=/data/consensus + - --metrics=0.0.0.0:29000 + - --rpc.addr=0.0.0.0:31000 + restart: unless-stopped + stop_grace_period: 5m + depends_on: + arc-mainnet-consensus-init: + condition: service_completed_successfully + arc-mainnet: + condition: service_started + restart: true + networks: + - chains + volumes: + - ${ARC_MAINNET_RETH_PRUNED_TRACE_CONSENSUS_DATA:-arc-mainnet-reth-pruned-trace-consensus}:/data/consensus + - arc-mainnet-reth-pruned-trace-sockets:/sockets + logging: *logging-defaults + labels: + - prometheus-scrape.enabled=true + - prometheus-scrape.port=29000 + +volumes: + arc-mainnet-reth-pruned-trace-consensus: + arc-mainnet-reth-pruned-trace-execution: + arc-mainnet-reth-pruned-trace-sockets: + +x-upstreams: + - id: $${ID} + labels: + provider: $${PROVIDER} + connection: + generic: + rpc: + url: $${RPC_URL} + chain: arc + method-groups: + enabled: + - debug + - filter + - trace + methods: + enabled: + - name: txpool_content +... \ No newline at end of file diff --git a/compose_registry.json b/compose_registry.json index c932cfc1..8705d972 100644 --- a/compose_registry.json +++ b/compose_registry.json @@ -876,6 +876,42 @@ "arbitrum-sepolia-nitro-erigon-pruned-trace" ] }, + { + "chain": "mainnet", + "client": "reth", + "compose_file": "arc/reth/arc-mainnet-reth-archive-trace", + "features": [ + "trace" + ], + "network": "arc", + "node": "malachite", + "relay": null, + "stack": null, + "type": "archive", + "volumes": [ + "arc-mainnet-reth-archive-trace-consensus", + "arc-mainnet-reth-archive-trace-execution", + "arc-mainnet-reth-archive-trace-sockets" + ] + }, + { + "chain": "mainnet", + "client": "reth", + "compose_file": "arc/reth/arc-mainnet-reth-pruned-trace", + "features": [ + "trace" + ], + "network": "arc", + "node": "malachite", + "relay": null, + "stack": null, + "type": "pruned", + "volumes": [ + "arc-mainnet-reth-pruned-trace-consensus", + "arc-mainnet-reth-pruned-trace-execution", + "arc-mainnet-reth-pruned-trace-sockets" + ] + }, { "chain": "testnet", "client": "reth",