Redesign Receive and payment request flows #932

Manually merged
pseudoramdom merged 6 commits from receive-payment-request-redesign into qt6 2026-09-29 15:48:50 +00:00 AGit
pseudoramdom commented 2026-09-21 19:42:45 +00:00 (Migrated from github.com)

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:

  • Persist each wallet’s preferred address type in settings.json, defaulting to Taproot
  • Creating a request saves its details against the displayed address.
  • After payment arrives, allow only private-note edits and hide QR/sharing actions.
  • Map address labels with private notes, keeping public names and messages separate.

Fixes #909

Screenshots

Screenshot 2026-09-21 at 11 53 04 AM
Receive page & creating a payment request
Screenshot 2026-09-21 at 11 53 09 AM
Viewing payment request
Screenshot 2026-09-21 at 11 53 40 AM
Viewing payment request after receiving payment
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: - Persist each wallet’s preferred address type in settings.json, defaulting to Taproot - Creating a request saves its details against the displayed address. - After payment arrives, allow only private-note edits and hide QR/sharing actions. - Map address labels with private notes, keeping public names and messages separate. Fixes #909 ### Screenshots <figure> <img width="1338" height="1010" alt="Screenshot 2026-09-21 at 11 53 04 AM" src="https://git.fish.foo/attachments/c817e0b6-a707-46e5-9272-8884c6bb06e9" /> <figcaption>Receive page & creating a payment request</figcaption> </figure> <figure> <img width="1338" height="1010" alt="Screenshot 2026-09-21 at 11 53 09 AM" src="https://git.fish.foo/attachments/be1d005a-b761-4d95-8b5f-ccf36ae9c88e" /> <figcaption>Viewing payment request</figcaption> </figure> <figure> <img width="1338" height="1010" alt="Screenshot 2026-09-21 at 11 53 40 AM" src="https://git.fish.foo/attachments/9c182b6b-df01-4926-a448-8431e4467287" /> <figcaption>Viewing payment request after receiving payment </figcaption> </figure>
hebasto commented 2026-09-27 15:16:46 +00:00 (Migrated from github.com)

Note: This PR is stacked on top of #915

This one could be rebased now.

> Note: This PR is stacked on top of #915 This one could be rebased now.
johnny9 (Migrated from github.com) reviewed 2026-09-28 16:13:40 +00:00
johnny9 (Migrated from github.com) left a comment

Findings are posted as comments on the appropriate lines.

Findings are posted as comments on the appropriate lines.
johnny9 (Migrated from github.com) commented 2026-09-28 16:13:40 +00:00

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.

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.
johnny9 (Migrated from github.com) commented 2026-09-28 16:13:40 +00:00

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.

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.
johnny9 (Migrated from github.com) commented 2026-09-28 16:13:40 +00:00

When the payer bumps the fee, this counts both the original incoming payment and its replacement. The receiver has no replaced_by_txid marker, 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.

When the payer bumps the fee, this counts both the original incoming payment and its replacement. The receiver has no `replaced_by_txid` marker, 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.
pseudoramdom (Migrated from github.com) reviewed 2026-09-28 17:08:20 +00:00
pseudoramdom (Migrated from github.com) commented 2026-09-28 17:08:20 +00:00

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

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
pseudoramdom (Migrated from github.com) reviewed 2026-09-28 17:10:05 +00:00
pseudoramdom (Migrated from github.com) commented 2026-09-28 17:10:05 +00:00

Fixed in 31c22f76830ab2996617cc7bb13fdfb08dfb2529. Indexed lookups and totals, moved reconciliation to a worker. Added the large-history test.

Fixed in 31c22f76830ab2996617cc7bb13fdfb08dfb2529. Indexed lookups and totals, moved reconciliation to a worker. Added the large-history test.
pseudoramdom (Migrated from github.com) reviewed 2026-09-28 17:10:36 +00:00
pseudoramdom (Migrated from github.com) commented 2026-09-28 17:10:36 +00:00

Fixed in github.com/bitcoin-core/gui-qml@31c22f7683. The close handler now checks whether the wallet actually changed.

Fixed in https://github.com/bitcoin-core/gui-qml/commit/31c22f76830ab2996617cc7bb13fdfb08dfb2529. The close handler now checks whether the wallet actually changed.
pseudoramdom (Migrated from github.com) reviewed 2026-09-28 17:10:52 +00:00
pseudoramdom (Migrated from github.com) commented 2026-09-28 17:10:52 +00:00
Fixed in https://github.com/bitcoin-core/gui-qml/commit/31c22f76830ab2996617cc7bb13fdfb08dfb2529
johnny9 (Migrated from github.com) reviewed 2026-09-28 20:44:13 +00:00
johnny9 (Migrated from github.com) commented 2026-09-28 20:44:13 +00:00

A 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.

A 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.
johnny9 (Migrated from github.com) commented 2026-09-28 20:44:13 +00:00

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.

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.
johnny9 (Migrated from github.com) commented 2026-09-28 20:44:13 +00:00

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.

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.
pseudoramdom (Migrated from github.com) reviewed 2026-09-28 23:14:28 +00:00
pseudoramdom (Migrated from github.com) commented 2026-09-28 23:14:28 +00:00
Fixed in https://github.com/bitcoin-core/gui-qml/commit/95c26a2e78bc16096257687c374704af91f90875
pseudoramdom (Migrated from github.com) reviewed 2026-09-28 23:14:33 +00:00
pseudoramdom (Migrated from github.com) commented 2026-09-28 23:14:33 +00:00
Fixed in https://github.com/bitcoin-core/gui-qml/commit/95c26a2e78bc16096257687c374704af91f90875
pseudoramdom (Migrated from github.com) reviewed 2026-09-28 23:14:40 +00:00
pseudoramdom (Migrated from github.com) commented 2026-09-28 23:14:40 +00:00
Fixed in https://github.com/bitcoin-core/gui-qml/commit/95c26a2e78bc16096257687c374704af91f90875
johnny9 (Migrated from github.com) approved these changes 2026-09-28 23:28:07 +00:00
johnny9 (Migrated from github.com) left a comment

ACK 95c26a2e78

The three reported issues are fixed. Build, unit/QML tests, and the Receive functional test passed. No further findings.

ACK 95c26a2e78bc16096257687c374704af91f90875 The three reported issues are fixed. Build, unit/QML tests, and the Receive functional test passed. No further findings.
Sign in to join this conversation.
No description provided.