From 88196e9a5451d121de404808b1c087361c376d5f Mon Sep 17 00:00:00 2001 From: Alice Date: Mon, 12 Oct 2026 04:34:39 +0700 Subject: [PATCH] fix(env): stop shipping an active Sepolia healthcheck RPC in .env.example docker-compose.yml loads healthcheck env_file as common -> envs/ -> .env, and later files win, so the live HEALTHCHECK__REFERENCE_RPC_PROVIDER in .env.example overrides envs/ink-mainnet/healthcheck.env. Following the README (cp .env.example .env) on mainnet therefore points the healthcheck sidecar at the Sepolia RPC. Comment the line out so the per-network file supplies the right value, and update the README bullet that told mainnet operators to edit it by hand. --- .env.example | 9 ++++++--- README.md | 8 +++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.env.example b/.env.example index 831345b..561cc81 100644 --- a/.env.example +++ b/.env.example @@ -35,9 +35,12 @@ OP_NODE__L1_BEACON= OP_NODE__RPC_TYPE=basic # L2 RPC used by the healthcheck sidecar for comparison. -# The per-network env files provide defaults, and this value overrides them. -# For ink-mainnet, switch this to https://rpc-gel.inkonchain.com -HEALTHCHECK__REFERENCE_RPC_PROVIDER=https://rpc-gel-sepolia.inkonchain.com +# Leave this commented out. envs//healthcheck.env already provides the +# right reference RPC for NETWORK_NAME, and docker-compose.yml loads this file +# last, so a value here silently overrides the per-network one. That makes a +# mainnet node healthcheck against a Sepolia RPC if this is copied unchanged. +# Uncomment only to force a custom reference RPC. +# HEALTHCHECK__REFERENCE_RPC_PROVIDER=https://rpc-gel-sepolia.inkonchain.com ############################################################################### # ↓ OPTIONAL ↓ # diff --git a/README.md b/README.md index 9352333..e869f04 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,6 @@ NODE_TYPE=full OP_NODE__RPC_ENDPOINT= OP_NODE__L1_BEACON= OP_NODE__RPC_TYPE=basic -HEALTHCHECK__REFERENCE_RPC_PROVIDER=https://rpc-gel-sepolia.inkonchain.com ``` Configuration notes: @@ -137,8 +136,11 @@ Configuration notes: most first-time setups only need the `.env` values above - `PORT__OP_NODE_P2P` changes the published host port in `docker-compose.yml`. The in-container `op-node` listener still uses `9003` -- For `ink-mainnet`, switch the healthcheck reference RPC to - `https://rpc-gel.inkonchain.com` +- The healthcheck reference RPC is selected per network by + `envs//healthcheck.env`. `docker-compose.yml` loads `.env` after + those files, so set `HEALTHCHECK__REFERENCE_RPC_PROVIDER` in `.env` only to + override it, and never leave a hardcoded Sepolia value there when + `NETWORK_NAME=ink-mainnet` - Advanced wrapper inputs such as `OVERRIDE_HOLOCENE` and `EXTENDED_ARG` live in `.env.example`. The shell entrypoints append them to both `op-geth` and `op-node`, so leave them empty unless you know the flag is compatible with