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

lightningd: use inflight->locked_scid instead of db lookup when splice locked.

Public commit record

What the developer wrote

Authored by Rusty Russell

65/100 · Adequate
lightningd: use inflight->locked_scid instead of db lookup when splice locked.

This means splitting up the deptch_update_scid() a little.

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 fixes how Core Lightning updates a channel's short identifier (SCID) after a 'splice' transaction is locked. Previously, the code looked up the transaction's location in the wallet database to compute the new SCID. Now it uses the SCID already recorded in the in-flight splice object. The change also refactors the update into smaller helper functions. The patch appears to be a correctness or robustness fix for splice handling, but the commit message does not frame it as a security issue.

Recommended action

Treat as a normal code-quality/correctness patch. Review whether the old db-lookup path could have been exploited to force channel closure or cause inconsistent state, but no immediate security response is indicated by the commit itself. If running a node, include this fix in regular updates.

Security signals we found

01

Change removes a database lookup from the splice lock-in path, reducing the chance of channel failure due to missing or inconsistent wallet state.

02

The previous code had an explicit 'Unrepresentable SCIDs cause channel failure' failure mode that is no longer exercised in this path.

03

The commit does not mention security, vulnerabilities, or a CVE.

04

No explicit bounds checks or input validation changes are present; the change is a refactor of existing logic.

05

The patch is small and localized to channel splice lock-in handling.

Risk score

Why this scored 34/100

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