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

Merge pull request #10919 from f321x/qml_dont_delete_paid_invoices

Public commit record

What the developer wrote

Authored by ThomasV

58/100 · Thin
Merge pull request #10919 from f321x/qml_dont_delete_paid_invoices

qml: prevent deleting paid invoices
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
The short version

What changed, and why it matters

This change fixes a bug in Electrum's mobile/QML wallet interface where paid Lightning invoices were being deleted from the wallet's records. The fix moves the 'don't delete paid invoices' protection into the core wallet code so it applies consistently, and it also prevents deletion of invoices that are still 'in flight' (payment pending). Keeping paid invoice records is important because they are needed to show transaction history and to prove a payment was made. Deleting them could cause confusion, accounting problems, or loss of payment evidence.

Recommended action

Review and merge if not already merged. Additionally, address the acknowledged leak where in-flight invoices that fail are never deleted, as this could accumulate stale payment state. Consider adding tests covering deletion of paid, unpaid, expired, and in-flight Lightning invoices.

Security signals we found

01

Loss of payment history / proof of payment for paid Lightning invoices

02

Potential deletion of in-flight Lightning payment state, which could corrupt payment tracking

03

UI model logic bypassed by direct wallet.delete_invoice/delete_request calls

04

Comment explicitly acknowledges a remaining leak for failed in-flight invoices

Risk score

Why this scored 37/100

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