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

lightningd: use scriptpubkey and blockdepth watches instead of tx watches for dual funding.

Public commit record

What the developer wrote

Authored by Rusty Russell

65/100 · Adequate
lightningd: use scriptpubkey and blockdepth watches instead of tx watches for dual funding.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This change refactors how Core Lightning watches for dual-funded channel opening transactions. Instead of watching for a specific transaction ID, it now watches for any transaction that spends to a specific 2-of-2 multisig script (the funding script). This is a robustness improvement that helps handle cases where the funding transaction might be replaced or malleated before confirmation, but the commit message frames it as a design change rather than a security fix.

Recommended action

Treat as a normal code-quality/robustness patch. Review whether the old txid-only watch could have caused operational issues (e.g., a mutated or RBF-replaced dual-funding tx not being tracked), but no urgent security action is indicated by the supplied materials. If a security advisory or CVE is later published, reassess.

Security signals we found

01

Replaces txid watch with scriptpubkey watch, reducing reliance on a specific funding txid surviving malleability/replacement

02

Separates reorg handling into distinct opening_reorged_cb callback

03

Adds explicit candidate-funding validity check before depth watch

04

No explicit security framing in commit message or diff

Risk score

Why this scored 43/100

Our methodology →
Potential impact 12/30
Exploitability 8/25
Stealth signal 7/15
Affected reach 8/15
Confidence 5/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.