mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:03:39 +00:00
Keep payment preparation, review and submission off the GUI thread #973
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#973
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #582.
Reviewing or sending a payment can block the interface during balance checks, transaction construction, signing, validation or database writes. Review getters can also block when they query input ownership, debit, previous transactions or labels.
Cover
getAvailableBalance(), send-all preparation,createTransaction(), unlock/relock,currentTransactionFlow(),fillPSBT(),commitTransaction(),broadcastTransaction()and recipient-label persistence. A pending indicator or queued GUI callback does not move this work off-thread.Run backend work outside the GUI thread and provide complete review data that getters can read without backend queries. Bind approval to the exact reviewed transaction, recipients and fees. Reject duplicate submissions and obsolete preparation results after edits or wallet changes. Completion handlers should only apply results.
Once submission starts, leaving the screen must not imply cancellation or permit a second send. Preserve resource lifetime and report the eventual outcome safely.
Acceptance should cover delayed preparation/signing/commit, draft edits, repeated clicks, wallet changes, encrypted wallets, send-all, failure/retry and recipient metadata. Coordinate fees, PSBTs, signers and replacements with their feature parents.