mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:12:38 +00:00
Read payment-request files asynchronously and reject stale delivery #978
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#978
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: #927. Follow-up to closed #541, covering asynchronous reads, stale results and limits on pending requests.
Opening or dropping a payment-request file can block Send while
parseBitcoinUriFromFile()opens, inspects and reads it. The size guard limits input length, not latency on slow or network-mounted storage. This is filesystem I/O; ordinary in-memory URI parsing does not need the same treatment.Read and parse files outside the GUI thread, with clear pending and error feedback. Associate each result with its request and destination. Reject late results after a newer import, wallet change, recipient edit, navigation or form replacement. Bound or coalesce repeated import work so requests cannot accumulate behind a slow read.
Preserve local file URLs, size and parse checks, actionable errors and existing overwrite behavior. Define shutdown behavior without waiting on the GUI thread; discarding a result must not be described as interrupting a blocked read.
Acceptance should cover delayed reads, repeated imports, navigation, edits while pending, shutdown, missing/unreadable or oversized files and invalid content. Keep PSBT import under #924.