Keep payment preparation, review and submission off the GUI thread #973

Open
opened 2026-10-02 17:35:39 +00:00 by johnny9 · 0 comments
johnny9 commented 2026-10-02 17:35:39 +00:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No description provided.