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

localchans: populate funding script for missing edges

Public commit record

What the developer wrote

Authored by Elle Mouton

85/100 · Strong
localchans: populate funding script for missing edges

When creating a missing edge, we need to populate the funding script too
so that the graph builder can update its ChainView appropriately. We use
the MakeFundingScript helper from the funding package which ensures that
we are using the same logic for creating a funding script as is used for
any of the channels that we own.
✓ 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 where Lightning Network channel edges created from a node's own channels were missing the 'funding script'—the on-chain Bitcoin script that locks funds in the channel. Without it, the routing graph builder could not properly track the channel's on-chain state (its ChainView), which could lead to stale routing data, incorrect channel visibility, or edge cases in pathfinding. The fix ensures the same helper used when opening real channels is used for these reconstructed edges.

Recommended action

Treat as a routine correctness fix. Review whether the missing FundingScript could have caused any exploitable routing or channel-state inconsistency, and include this commit in the next maintenance release. No immediate emergency response is indicated by the diff alone.

Security signals we found

01

Missing on-chain script in routing graph metadata

02

Inconsistent local channel graph state

03

Potential for routing decisions based on incomplete channel data

04

Fix aligns edge reconstruction with normal channel-opening logic

Risk score

Why this scored 32/100

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