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

Emit DiscardFunding event when no splice transaction confirms

Public commit record

What the developer wrote

Authored by Wilmer Paulino

85/100 · Strong
Emit DiscardFunding event when no splice transaction confirms

When adding support for emitting these events in the channel monitor, we
only covered the case where one of the splice transaction candidates
confirmed. We also need to emit an event when none of them can confirm
due to a commitment transaction confirming (and no longer under reorg
risk) for the pre-splice funding.
✓ 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 missing notification in the Lightning Dev Kit's channel monitoring logic. When a splice (a planned funding change) never confirms on the blockchain and instead the original commitment transaction confirms, the software now emits a 'DiscardFunding' event. Previously, this event was only emitted when one of the splice candidates confirmed. Without this event, wallets or users relying on it to stop watching or clean up unconfirmed splice funding transactions could leave those transactions being monitored indefinitely, potentially causing confusion, wasted resources, or delayed cleanup.

Recommended action

Review whether any downstream wallet or node operator depends on DiscardFunding for cleanup; ensure this patch is applied to avoid stale watch entries and missing notifications. No immediate active exploitation vector is evident, but the fix should be included in the next maintenance release.

Security signals we found

01

Missing event emission in on-chain monitoring path

02

Resource cleanup/watch-list pruning for unconfirmed splice funding

03

Consistency fix between commitment confirmation and alternative funding confirmation paths

04

Test added to assert expected DiscardFunding events

Risk score

Why this scored 42/100

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