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

create_routes_for_payment: allow trampoline forwarding without channel_db if there is a direct path

Public commit record

What the developer wrote

Authored by ThomasV

50/100 · Thin
create_routes_for_payment: allow trampoline forwarding without channel_db if there is a direct path
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit changes how Electrum's Lightning wallet builds payment routes when using trampoline routing. It adds a shortcut: if the payment recipient is directly connected to the wallet via a channel, Electrum can create a direct route without needing the full network channel database. The change also moves the fee-budget check out of the general route builder so it applies to both direct and non-direct routes. There is no explicit security bug in the diff, but the change touches payment routing logic and fee checks, which are security-sensitive.

Recommended action

Review the new `create_direct_route()` helper to confirm it correctly handles channel state, policy validation, and edge cases such as inactive or force-closing channels. Verify that moving the fee-budget check does not bypass it for any code path that previously relied on `create_route_for_single_htlc()` enforcing the budget. Consider whether `is_direct_path` should also require that the direct channel has sufficient balance and is usable.

Security signals we found

01

Payment routing logic modified

02

Fee budget validation moved to a different call site

03

New direct route construction helper introduced

04

Trampoline routing branch behavior changed

05

No explicit vulnerability or exploit described in commit message

Risk score

Why this scored 34/100

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