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

pytest: test to demonstrate that reservations of "private" channels overlap.

Public commit record

What the developer wrote

Authored by Rusty Russell

75/100 · Adequate
pytest: test to demonstrate that reservations of "private" channels overlap.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification
The short version

What changed, and why it matters

This commit adds a test showing a bug in Core Lightning's routing-reservation system. When two separate routing layers use the same fake channel ID, a reservation made through one layer is incorrectly counted against the other layer too. The test is marked as expected to fail, meaning it documents the bug rather than fixing it. This could cause valid payment routes to be rejected because the system thinks capacity is already reserved when it should not be.

Recommended action

Treat this as a bug report in test form. The askrene reservation logic should scope reservations by layer (or by the actual channel identity) rather than by short_channel_id alone. Reviewers should verify whether a follow-up fix exists and assess whether the bug can be triggered with real (non-fake) channel IDs in production routing.

Security signals we found

01

Reservation state shared across independent routing layers

02

Denial-of-route caused by cross-layer capacity accounting bug

03

Test-only commit documenting a reproducible bug

Risk score

Why this scored 35/100

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