mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-07-22 19:35:51 +00:00
141d2b1f42
nodesHealthState() only ever looked at wssNodes(), so an HTTPS-only chain (Tron - no wss endpoint at all) always got an empty node list here: the enable/disable switch itself worked correctly (it reads/writes chain.isEnabled directly, unrelated to this list), but with nothing ever rendering underneath it, the screen looked frozen/unresponsive - this is almost certainly why a single real toggle needed several taps to land correctly, since there was no visible confirmation whichever tap actually took effect. Falls back to httpNodes() when a chain has no wss nodes, and adds a real TronNodeHealthStateTester (GET /wallet/getchainparameters, needs no address) instead of naively reusing EthereumNodeHealthStateTester's eth_getBalance call, which TronGrid doesn't speak and would have always reported the node as down regardless of its actual health.