AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 25 Bitcoin

rpcserver: fix stats undercount in GetNetworkInfo

Public commit record

What the developer wrote

Authored by elnosh

68/100 · Adequate
rpcserver: fix stats undercount in GetNetworkInfo

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.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a simple coding mistake in LND's GetNetworkInfo RPC. When building network statistics, if the code encountered a channel it had already counted, it accidentally stopped processing that node's remaining channels instead of just skipping the duplicate. This caused reported totals like network capacity and channel count to be too low. The fix changes 'return' to 'continue' so the loop keeps going. It is a correctness bug, not a security vulnerability.

Recommended action

Treat as a routine bug fix. No security response required. Users relying on GetNetworkInfo for analytics should upgrade to obtain accurate network statistics.

Security signals we found

01

No security framing in commit message or release notes

02

Bug is a logic/correctness error causing under-reported statistics

03

No input validation, authorization, memory safety, or cryptographic issues evident

04

No attacker-controlled behavior or privilege boundary crossed

Risk score

Why this scored 25/100

Our methodology →
Potential impact 4/30
Exploitability 0/25
Stealth signal 2/15
Affected reach 5/15
Confidence 9/10
Evidence quality 5/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.