mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Redesign Receive and payment request flows #932
No reviewers
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!932
Loading…
Reference in a new issue
No description provided.
Delete branch "receive-payment-request-redesign"
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?
Redesign Receive with an immediately available address and QR code alongside an optional payment request form.
Viewing payment request opens in an modal where the fields can be edited inline.
Key changes:
Fixes #909
Screenshots
This one could be rebased now.
Findings are posted as comments on the appropriate lines.
When a request is opened from transaction details, a new block closes the dialog.
refreshOpenDetails()reassigns the same wallet, which triggers this handler. Close the dialog from this handler only when the wallet object actually changes. Add a test that updates transaction details while the dialog is open.Opening or editing a saved request runs a full wallet scan on the GUI thread, and each owned output scans all saved requests. With 10,000 payments and 10,000 requests, a production-model probe with a mock backend blocked the UI for 2.6 seconds. Index requests by address, keep incremental totals, and move full reconciliation off the GUI thread. Add a large-history responsiveness test.
When the payer bumps the fee, this counts both the original incoming payment and its replacement. The receiver has no
replaced_by_txidmarker, and the original still has depth 0 after leaving the mempool. I reproduced 0.001 BTC showing as 0.002 BTC. Exclude depth-0 transactions outside the mempool from the total, while keeping the address-reuse lock. Add a fee-bump test with separate sender and receiver wallets.Ah good catch! I ran in to this but looks like I fixed only in Activity from the sender perspective when the mempool had conflicting transactions
Fixed in 31c22f76830ab2996617cc7bb13fdfb08dfb2529. Indexed lookups and totals, moved reconciliation to a worker. Added the large-history test.
Fixed in
github.com/bitcoin-core/gui-qml@31c22f7683. The close handler now checks whether the wallet actually changed.Fixed in
github.com/bitcoin-core/gui-qml@31c22f7683A paid request can still show its QR code and allow copying while the initial scan is pending. Its saved paid flag may be outdated. Disable sharing and URI-copy actions until the scan finishes. Test opening a paid request during a delayed scan.
When the scan marks many requests paid, each change rebuilds Activity on the GUI thread. A probe with 500 requests and a mock backend blocked the UI for 4.2 seconds. Use a pending flag to queue one Activity rebuild for the batch. Test with Activity loaded and saved payment flags initially false.
If a replacement pays elsewhere, the request can keep showing the cancelled payment. Its mempool removal sends no transaction-change notification. I reproduced 0.001 BTC still shown after cancellation. Recheck cached unconfirmed payments without relying on a replacement paying the same address. Add a cancellation test.
Fixed in
github.com/bitcoin-core/gui-qml@95c26a2e78Fixed in
github.com/bitcoin-core/gui-qml@95c26a2e78Fixed in
github.com/bitcoin-core/gui-qml@95c26a2e78ACK
95c26a2e78The three reported issues are fixed. Build, unit/QML tests, and the Receive functional test passed. No further findings.