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

lnwallet: use split config channel for single channel mpp

Public commit record

What the developer wrote

Authored by f321x

85/100 · Strong
lnwallet: use split config channel for single channel mpp

Use the channel returned by the split config when sending a
single channel mpp (multiple parts on a single channel), instead
of allowing the pathfinding to use any channel.
Otherwise it can happen that we have a good split config fitting a
specific channel, but the pathfinding then tries to put both parts
on another channel that cannot handle the sum of the parts, raising
at _assert_can_add_htlc later on and failing the payment.
✓ 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 bug in Electrum's Lightning payment logic. When sending a payment split into multiple parts over a single channel, the app could previously ignore the intended channel and route all parts through a different channel that lacked enough capacity. That caused the payment to fail with an internal assertion error. The fix ensures the chosen channel from the split configuration is actually used.

Recommended action

Treat as a routine bug-fix patch. Users relying on Lightning single-channel MPP payments should upgrade to avoid payment failures. No immediate security response is indicated by the commit content.

Security signals we found

01

Fixes a logic bug that could cause Lightning payment failures

02

Prevents internal assertion failure (_assert_can_add_htlc) during payment routing

03

Ensures split configuration channel selection is honored during pathfinding

Risk score

Why this scored 30/100

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