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

chanfitness: seed peer uptime from actual online state

Public commit record

What the developer wrote

Authored by Erick Cestari

85/100 · Strong
chanfitness: seed peer uptime from actual online state

Channels are loaded into the channel fitness store on startup regardless
of whether their peer is connected. When a peer monitor was first
created we unconditionally recorded an online event, which caused
offline peers to report 100% uptime in ListChannels.

Seed the initial event with the peer's actual connection state via a new
IsPeerOnline config callback so that uptime reflects real connectivity.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
The short version

What changed, and why it matters

This commit fixes a bug in LND's channel-fitness subsystem that made offline peers falsely appear to have 100% uptime. The fix seeds the initial uptime state from the peer's real connection status instead of always assuming online. It is a correctness/telemetry bug, not an exploitable security vulnerability.

Recommended action

Treat as a routine bug-fix commit. No security response required. Operators relying on uptime metrics should upgrade to obtain accurate peer uptime data.

Security signals we found

01

Incorrect telemetry/metric initialization leading to misleading uptime data

02

No input validation, authentication, or memory-safety changes

03

No cryptographic, networking, or privilege-boundary changes

Risk score

Why this scored 24/100

Our methodology →
Potential impact 2/30
Exploitability 0/25
Stealth signal 3/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.