Used-address payment requests are not shown in Activity under the Payment request filter #726

Closed
opened 2026-05-24 23:45:10 +00:00 by johnny9 · 1 comment
johnny9 commented 2026-05-24 23:45:10 +00:00 (Migrated from github.com)

Summary

On current origin/qt6 (fetched locally to f9e22ad41c), payment requests for already used addresses are visible in Activity details, but they are not surfaced as Activity rows when the Payment request filter is selected.

This leaves the implementation only halfway to the behavior described in the PR review discussion.

Surfaced by review comment:
https://github.com/bitcoin-core/gui-qml/pull/708#discussion_r3295457321

Current behavior

  • Unused-address payment requests are added to the Activity list as pending request rows.
  • Used-address payment requests are not added as Activity rows at all.
  • For a real transaction row, Activity details already show matching payment requests for that address.

Expected behavior

If the intended policy is that payment requests for already used addresses should only appear in the Activity list when the Payment request filter is selected, then those requests still need to be materialized in the Activity model in a way that the filter can expose them.

Likely gap in the current code

ActivityListModel::addPendingReceiveRequests() skips any receive request whose address already exists in activity:

if (address.isEmpty() || existing_addresses.contains(address)) continue;

So used-address requests never become rows in ActivityListModel.

ActivityFilterProxyModel only classifies/filter rows that already exist. In particular, it maps rows with IsPendingRequestRole to PaymentRequest, but it does not synthesize rows for used-address requests.

Relevant code paths

  • qml/models/activitylistmodel.cpp
    • addPendingReceiveRequests()
    • transactionDetails()
  • qml/models/activityfilterproxymodel.cpp
    • filterTypeForIndex()
  • qml/pages/wallet/ActivityDetails.qml
  • qml/pages/wallet/Activity.qml

Notes

The details-side support already exists via matchingEntriesForAddress(...), so this seems specifically like a model/list-visibility gap rather than a missing details implementation.

## Summary On current `origin/qt6` (fetched locally to `f9e22ad41c`), payment requests for **already used addresses** are visible in **Activity details**, but they are **not surfaced as Activity rows** when the **Payment request** filter is selected. This leaves the implementation only halfway to the behavior described in the PR review discussion. Surfaced by review comment: https://github.com/bitcoin-core/gui-qml/pull/708#discussion_r3295457321 ## Current behavior - Unused-address payment requests are added to the Activity list as pending request rows. - Used-address payment requests are not added as Activity rows at all. - For a real transaction row, Activity details already show matching payment requests for that address. ## Expected behavior If the intended policy is that payment requests for already used addresses should only appear in the Activity list when the **Payment request** filter is selected, then those requests still need to be materialized in the Activity model in a way that the filter can expose them. ## Likely gap in the current code `ActivityListModel::addPendingReceiveRequests()` skips any receive request whose address already exists in activity: ```cpp if (address.isEmpty() || existing_addresses.contains(address)) continue; ``` So used-address requests never become rows in `ActivityListModel`. `ActivityFilterProxyModel` only classifies/filter rows that already exist. In particular, it maps rows with `IsPendingRequestRole` to `PaymentRequest`, but it does not synthesize rows for used-address requests. ## Relevant code paths - `qml/models/activitylistmodel.cpp` - `addPendingReceiveRequests()` - `transactionDetails()` - `qml/models/activityfilterproxymodel.cpp` - `filterTypeForIndex()` - `qml/pages/wallet/ActivityDetails.qml` - `qml/pages/wallet/Activity.qml` ## Notes The details-side support already exists via `matchingEntriesForAddress(...)`, so this seems specifically like a model/list-visibility gap rather than a missing details implementation.
epicleafies commented 2026-06-29 15:46:40 +00:00 (Migrated from github.com)

Working on this.

Working on this.
Sign in to join this conversation.
No description provided.