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

pytest: add test that we fixup "pending" payments which don't actually have HTLCs.

Public commit record

What the developer wrote

Authored by Rusty Russell

75/100 · Adequate
pytest: add test that we fixup "pending" payments which don't actually have HTLCs.

And don't fix up a genuine pending one!

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 only adds a new test case (and a small SQLite database snapshot used by the test). It does not change any production code. The test is currently marked as expected to fail (xfail), meaning it documents a known bug where Core Lightning may incorrectly report some payments as 'pending' when they actually have no active HTLCs. Because no fix is included, this commit by itself does not improve or worsen security.

Recommended action

No immediate action is required for this commit. Treat it as test-suite maintenance that flags a possible state-cleanup bug. If the underlying issue is confirmed, a follow-up fix should ensure payments without active HTLCs are correctly marked failed rather than pending.

Security signals we found

01

No production code changes

02

Test-only commit

03

xfail marker indicates known unfixed behavior

04

Potential data-integrity issue: payments may be stuck in pending state without underlying HTLCs

Risk score

Why this scored 11/100

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