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

lntest+rpcserver: ignore `chanfitness.ErrPeerNotFound` in rpc

Public commit record

What the developer wrote

Authored by yyforyongyu

73/100 · Adequate
lntest+rpcserver: ignore `chanfitness.ErrPeerNotFound` in rpc

Similar to how we handle `chanfitness.ErrChannelNotFound`, we now also
ignore the `ErrPeerNotFound`. This is needed as previously we will
always see the peer in the channel event store given it'd added when
connected. This is no longer the case as we only add the peer to the map
when the channel is added.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This change is a small hardening fix in LND's RPC server. It makes the code gracefully handle a newly introduced error case—when a peer is not yet known to the channel event store—instead of potentially failing or returning unexpected behavior. It is not a fix for an active exploit, but it prevents a class of operational/logic errors from surfacing to users.

Recommended action

Treat as a routine maintenance/defensive patch. No urgent security action required. Reviewers may want to confirm that no other callers of GetChanInfo need similar handling and that the log level change from Infof to Warnf for ErrChannelNotFound is intentional.

Security signals we found

01

Defensive error handling for newly possible ErrPeerNotFound condition

02

Prevents RPC channel info population from failing due to missing peer entry

03

Uses errors.Is() for robust wrapped-error matching

04

No authentication, authorization, cryptographic, or network-boundary changes

Risk score

Why this scored 19/100

Our methodology →
Potential impact 2/30
Exploitability 1/25
Stealth signal 1/15
Affected reach 3/15
Confidence 8/10
Evidence quality 4/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.