mirror of
https://github.com/pezkuwichain/pezkuwi-subquery.git
synced 2026-10-20 18:56:24 +00:00
The bot pointed at the block-producing nodes' RPC ports. Those bind to localhost, so once they stopped being exposed to the internet the bot lost every chain at once and has submitted nothing since. `staking_score` gates the entire trust score, so a noter that cannot reach the chains does not degrade the score — it zeroes it for every tracked account. Point it at the public endpoints instead, which is what an external client should use and what the code already defaulted to. They are TLS-terminated rather than plaintext ws:// across the internet, and this drops a hardcoded node address from the repository. Reaching the chains again is not enough on its own: the outage lasted three weeks because reconnecting forever looks identical to working. The bot now writes a heartbeat when a scan *completes*, a container healthcheck reads it, and a watchdog exits once it goes stale so the restart policy turns a silent stall into a visibly crash-looping container.