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

qml: fix userinfo race in Invoice view

Public commit record

What the developer wrote

Authored by f321x

68/100 · Adequate
qml: fix userinfo race in Invoice view

When paying a lightning invoice there was a race between the
`on_event_payment_succeeded` and `on_event_invoice_status` callbacks.
Depending on which was called last the string at the top
of the invoice view would either say "Paid!" (correct) or
"This invoice was already paid" (technically correct but confusing).
By keeping state if the invoice payment attempt was initiated in this
session the subsequent calls to `update_userinfo` can correctly
determine which string to show.
✓ 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 minor user-interface timing bug in Electrum's mobile/QML invoice view. When paying a Lightning invoice, two internal notifications could arrive in different orders, causing the screen to briefly or incorrectly show 'This invoice was already paid' instead of 'Paid!'. The fix tracks whether the payment was started in the current session so the right message is always shown. There is no security issue here—only a confusing label.

Recommended action

No security action required. Treat as a normal UI bug fix.

Security signals we found

No strong security signals were identified.

Risk score

Why this scored 15/100

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