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

pytest: demonstrate the weird 0 htlc_maximum_msat problem.

Public commit record

What the developer wrote

Authored by Rusty Russell

65/100 · Adequate
pytest: demonstrate the weird 0 htlc_maximum_msat problem.

It depends on gossip_store order, so it's not reliable.

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 commit adds a test case that demonstrates a bug in Core Lightning where a blinded payment path can be created with a zero htlc_maximum_msat value. This means the software sometimes generates payment invoices with a maximum payment size of zero, which could prevent payments from working. The test is marked as expected to fail because it only triggers under certain conditions related to gossip store ordering.

Recommended action

Treat this as a bug report test rather than a security fix. The commit only adds a test demonstrating the issue. A follow-up fix should investigate why htlc_maximum_msat can become zero in invoice_paths payinfo when a node without advertised addresses uses a fronting node, and make the computation deterministic regardless of gossip_store order.

Security signals we found

01

Non-deterministic test failure tied to gossip_store ordering

02

Zero-value htlc_maximum_msat in generated BOLT12 blinded payment path

03

Potential payment routing failure or invoice usability issue

04

Test marked xfail indicating known but not yet fixed bug

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.