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

wallet: don't delete payment infos when deleting paid/inflight invoice/req

Public commit record

What the developer wrote

Authored by f321x

73/100 · Adequate
wallet: don't delete payment infos when deleting paid/inflight invoice/req

Don't try to delete a `PaymentInfo` when deleting the attached `Invoice`/`Request`
if they were already paid (or the payment is still inflight).
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a bug in the Electrum Bitcoin wallet where deleting a paid or in-flight Lightning invoice/request could incorrectly erase important payment records. The change now preserves those records when a payment has already completed or is still pending, preventing loss of payment history and avoiding a minor privacy leak if an in-flight payment later fails.

Recommended action

Review whether any existing user databases already lost PaymentInfo for paid/inflight invoices and consider a data-integrity note in release notes. No immediate exploit mitigation is required, but users should update to the fixed version.

Security signals we found

01

Data-loss / history-integrity bug: paid payment metadata could be removed

02

Privacy leak: in-flight Lightning payment info deleted prematurely may leave a payment that cannot be cleaned up later

03

State-consistency fix: payment status now gates deletion of PaymentInfo

Risk score

Why this scored 33/100

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