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

listsendpays: discriminate ongoing payment by groupid

Public commit record

What the developer wrote

Authored by Lagrang3

83/100 · Strong
listsendpays: discriminate ongoing payment by groupid

A payment attempt in listpays is defined as pair (payment hash, group id).
If we query xpay for ongoing payments we must discriminate
using both values.

Fixes flaky test tests/test_pay.py:test_sendpay_grouping
```
FAILED tests/test_pay.py::test_sendpay_grouping - AssertionError: assert ['pending', 'pending', 'complete'] == ['failed', 'failed', 'complete']
```

Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
✓ 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 fixes a bug in how the xpay plugin reports payment status. Previously, when listing ongoing payments, it only checked the payment hash, which could incorrectly mark unrelated payment attempts as 'pending' instead of 'failed'. Now it also checks the group ID, so each distinct payment attempt is judged correctly. There is no direct security exploit here, but the bug could mislead users or automated tools about whether a payment succeeded or failed.

Recommended action

Treat as a functional bug fix rather than a security patch. Users relying on listsendpays/listpays for payment automation should update to avoid incorrect status reporting. No urgent security action is required.

Security signals we found

01

Status-reporting bug in payment plugin

02

Same payment_hash used to incorrectly classify distinct payment attempts

03

Fixes flaky test assertion mismatch between pending/failed statuses

04

No input validation, memory safety, or cryptographic changes

Risk score

Why this scored 20/100

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