From 05b1a564a5f16d4b5984007060e17b8472965bb4 Mon Sep 17 00:00:00 2001 From: Nate Isern Date: Fri, 11 Sep 2026 06:16:00 +0300 Subject: [PATCH] fix: only monitor configured FairCoin networks --- server/lib/websocket-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/websocket-handler.ts b/server/lib/websocket-handler.ts index 34b3ee0..c2d0620 100644 --- a/server/lib/websocket-handler.ts +++ b/server/lib/websocket-handler.ts @@ -24,7 +24,7 @@ const wsManager = getWebSocketManager({ // Networks the monitor polls. Configurable so deployments without a testnet // node aren't stuck logging RPC failures every poll cycle. -const MONITOR_NETWORKS = (process.env.WEBSOCKET_NETWORKS || 'mainnet,testnet') +const MONITOR_NETWORKS = (process.env.WEBSOCKET_NETWORKS || 'mainnet') .split(',') .map(n => n.trim()) .filter((n): n is NetworkType => n === 'mainnet' || n === 'testnet')