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

pytest: test the askrene doesn't use local dying channels.

Public commit record

What the developer wrote

Authored by Rusty Russell

83/100 · Strong
pytest: test the askrene doesn't use local dying channels.

We don't want it to think that it can use both pre-splice and post-splice channels!

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

What changed, and why it matters

This commit adds a test showing that Core Lightning's routing helper (askrene) may incorrectly consider both an old 'pre-splice' channel and a new 'post-splice' channel as usable at the same time, even though only the new one is valid. The test demonstrates that a local node correctly ignores the dying old channel, but a remote peer (l3) still sees both as active and could try to route payments through the stale channel. This could lead to failed or stuck payments for remote nodes relying on outdated gossip.

Recommended action

Treat as a bug report in test form. A follow-up fix should make askrene (and possibly broader gossip routing) recognize when a channel splice has replaced an older scid and exclude the pre-splice/dying channel from route selection. Reviewers should confirm whether the failing assertion is intentional and whether an accompanying fix is planned.

Security signals we found

01

Routing over stale/dying channel after splice

02

Remote node sees both pre-splice and post-splice channels as active

03

Potential payment failure or channel liquidity misestimation

04

Test-only commit, no production code change

Risk score

Why this scored 33/100

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