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

lightningd: use scriptpubkey watch and block depth watch for splicing.

Public commit record

What the developer wrote

Authored by Rusty Russell

65/100 · Adequate
lightningd: use scriptpubkey watch and block depth watch for splicing.

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 rewrites how Core Lightning watches for splice-inflight funding transactions. Previously it watched for a specific transaction ID. Now it watches for any transaction that creates an output matching the expected 2-of-2 multisig script (scriptpubkey) and then tracks how deeply that block is buried. The intent appears to be robustness—so a splice still works even if the funding transaction ID changes before confirmation—but the change also removes some defensive error handling and replaces it with an abort() and a new reorg callback. There is no explicit security claim in the commit, and no external advisory is supplied.

Recommended action

Review whether abort() in splice_depth_cb is safe against a maliciously crafted or reorg-induced inconsistent wallet state; consider whether the scriptpubkey watch could match unintended transactions and whether total_funds matching is sufficient to prevent confusion. No immediate patch or CVE is indicated by the supplied materials, but the change alters failure semantics and should be included in normal release testing for splicing correctness.

Security signals we found

01

Change from txid-based watch to scriptpubkey-based watch for splice funding detection

02

Removal of channel_fail_permanent on invalid SCID derivation in depth callback; replaced with abort()

03

Addition of separate reorg callback (splice_reorged_cb) returning DELETE_WATCH

04

Reduced log verbosity for non-AWAITING_SPLICE splice events (log_info -> log_debug)

05

New use of bitcoin_redeem_2of2 and P2WSH scriptpubkey for splice funding watch

Risk score

Why this scored 31/100

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