rpcserver: fix stats undercount in GetNetworkInfo#10963
Conversation
On an already-seen channel, the loop returned from the whole node callback instead of continuing, skipping the node's remaining channels, this undercounted the stats.
🔴 PR Severity: CRITICAL
🔴 Critical (1 file)
AnalysisThe only file changed is To override, add a |
I was seeing dubious numbers from
getnetworkinfocommand which did not match at all to the graph fromdescribegraph.Seems the issue is that it is returning early instead of continuing in the loop in
GetNetworkInfoso it ended up under counting the stats.Finding the issue in the code was LLM-assisted