From d7ca051c20609b40c4e77874a363f31637cde7ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Wed, 12 Nov 2025 01:29:00 +0100 Subject: [PATCH] feat(GUI): also poll Electrum servers for their status (#710) --- src-gui/src/renderer/rpc.ts | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src-gui/src/renderer/rpc.ts b/src-gui/src/renderer/rpc.ts index 597f781e..e4fa7f33 100644 --- a/src-gui/src/renderer/rpc.ts +++ b/src-gui/src/renderer/rpc.ts @@ -293,15 +293,21 @@ export async function updateAllNodeStatuses() { const network = getNetwork(); const settings = store.getState().settings; - // Only check Monero nodes if we're using custom nodes (not RPC pool) - // Skip Bitcoin nodes since we pass all electrum servers to the backend without checking them (ElectrumBalancer handles failover) - if (!settings.useMoneroRpcPool) { - await Promise.all( - settings.nodes[network][Blockchain.Monero].map((node) => - updateNodeStatus(node, Blockchain.Monero, network), - ), - ); - } + // We pass all electrum servers to the backend without checking them (ElectrumBalancer handles failover), + // but check these anyway since the status appears in the GUI. + // Only check Monero nodes if we're using custom nodes (not RPC pool). + await Promise.all( + (settings.useMoneroRpcPool + ? [Blockchain.Bitcoin] + : [Blockchain.Bitcoin, Blockchain.Monero] + ) + .map((blockchain) => + settings.nodes[network][blockchain].map((node) => + updateNodeStatus(node, blockchain, network), + ), + ) + .flat(), + ); } export async function cheapCheckBitcoinBalance() {