mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Keep PSBT import, review, signing and export off the GUI thread #975
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#975
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: #924.
Importing or saving a PSBT can block the interface on file I/O, decoding, wallet queries or signing. File-size limits do not bound storage latency.
tryGetTxStatus()is also not fully nonblocking: after taking the wallet lock it can wait for chain state.Cover file loading and saving, status checks, ownership and signability queries,
fillPSBT(), analysis/finalization, review data, signing and broadcast. Include supported exposed PSBT operations as well as the active import/review flow; do not describe unused APIs as observed user stalls.Perform blocking work outside the GUI thread. Return complete results, keep getters cached, expose pending/error states and reject obsolete results after another import, wallet change or navigation. Prevent duplicate broadcasts. Preserve partial signatures, imported outputs, fees and metadata across operations; apply clipboard changes on the GUI thread.
Acceptance should cover slow or malformed files, known transactions, watch-only and multisig cases, partial signatures, failed saves, stale imports and closing during work. Coordinate shared submission with #582 and device lifetime with #583.
The failed-save coverage here should also check whether the error is visible long enough to act on.
On Review Transaction, position Save transaction near the bottom of the visible area, then attempt to save into an unwritable directory. The writer returns Could not save PSBT: Permission denied, but the error banner is placed below the action buttons, outside the viewport. It clears automatically after about three seconds, so scrolling down afterwards reveals no explanation and no file was saved.
With enough space to show the banner, the same error is visible. Restoring write permission lets the same review save successfully. This is a feedback-placement and persistence problem in QML; the file writer reports the failure correctly.
Please keep failed-save feedback in view and retain it until dismissed or retried. It currently shares the success message's three-second timeout.
Rechecked on
qt6at6e54a48ab571, macOS / Qt 6.9, using the offscreen save-path test hook and a disposable directory. The earlier native-dialog reproduction also reached this same error banner.