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

Add an upgrade test of splicing after upgrading from 0.1

Public commit record

What the developer wrote

Authored by Matt Corallo

60/100 · Adequate
Add an upgrade test of splicing after upgrading from 0.1
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
The short version

What changed, and why it matters

This commit adds a regression test for a splicing bug in the Lightning Dev Kit. The bug could leave a forwarded payment (HTLC) in a dangling state if a channel was spliced while the payment was still queued for forwarding. The test verifies that after upgrading from LDK 0.1, such HTLCs are correctly failed or claimed. The commit also exposes some internal test helpers so the new cross-version test can use them. It does not itself change production logic, so it is primarily a test/verification patch rather than a fix.

Recommended action

Treat this commit as test-hardening rather than an active vulnerability fix. Review whether the underlying production-code fixes for the two described splice defects are already present in the branch; if not, ensure they are tracked and landed separately. Consider running the new upgrade/downgrade test in CI to prevent regressions.

Security signals we found

01

Regression test for dangling HTLC after splice

02

Historical bug: backwards HTLC failure used stale SCID after splice

03

Historical bug: KeysManager attempted to_remote key rotation during splice

04

Cross-version upgrade/downgrade test coverage added

05

Internal test-only visibility changes (no production code path changes)

Risk score

Why this scored 44/100

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