Activity: amount filter excludes request amounts and drifts after wallet updates #1095

Open
opened 2026-11-09 20:48:49 +00:00 by jarolrod · 0 comments
jarolrod commented 2026-11-09 20:48:49 +00:00 (Migrated from github.com)

Activity’s amount filter has two related inconsistencies: its available range can exclude the payment requests it filters, and a wallet update can change the displayed selection without changing the applied filter.

For the request-range case:

  1. Start with a wallet with no transaction history.
  2. In Receive, create two unpaid requests for 200,000 and 500,000 sats.
  3. Open Activity → Amount. The range is zero and the slider is disabled, although both requests appear in Activity.
  4. Receive and confirm 100,000 sats at a different address, leaving both requests unpaid.
  5. Select Payment request in Activity’s type filter and open Amount again.

The slider now stops at 100,000 sats, below both requests. There is no selectable range that covers their amounts. The saved requests retain their correct values.

For the live-update case:

  1. Use a wallet whose largest Activity transaction is 16,000,000 sats.
  2. Open Amount and lower the upper limit to 10,250,000 sats.
  3. Leave the popup open, then receive and confirm another 20,000,000 sats.
  4. Compare the popup’s range with the visible Activity rows.

The popup shows 0–20,000,000 sats, but the applied maximum remains 10,250,000. Both the existing 16,000,000-sat transaction and the new payment remain hidden. Closing and reopening the popup restores the displayed limit to 10,250,000 without changing the results.

The same shared-slider mismatch also reproduces in View coins: a selected maximum of 7,503,906 sats is displayed as 9,000,000 after an incoming coin, while the 8,000,000- and 9,000,000-sat coins remain excluded.

The available bounds should cover the amounts of the rows being filtered. If amount filtering is intended to apply only to transactions, request rows should instead be explicitly exempt. The displayed handles, range label and applied filter should also remain consistent when wallet updates change the available bounds.

These inconsistencies originate in QML’s filtering and slider state. updateAvailableMaxAmount() excludes pending requests, while filterAcceptsRow() applies amount bounds to them. Separately, the shared RangeSlider binds its handle values to the available endpoints, allowing a bounds update to move the displayed handles without the user-movement handlers updating the filter.

The request-range case was reproduced on merged qt6 at eed1f426fcb6, macOS / Qt 6.9, using an isolated offscreen regtest profile. The live-update cases were reproduced in the native macOS GUI at d567e3eb2497; their relevant model and shared-slider source was checked unchanged at eed1f426fcb6, but those cases were not rerun in the latest pass.

Related to #579 and #923. The inspected PR #990 head retains the request-bound inconsistency; its wallet refresh work does not fix these amount-filter states.

Activity’s amount filter has two related inconsistencies: its available range can exclude the payment requests it filters, and a wallet update can change the displayed selection without changing the applied filter. For the request-range case: 1. Start with a wallet with no transaction history. 2. In Receive, create two unpaid requests for 200,000 and 500,000 sats. 3. Open Activity → Amount. The range is zero and the slider is disabled, although both requests appear in Activity. 4. Receive and confirm 100,000 sats at a different address, leaving both requests unpaid. 5. Select **Payment request** in Activity’s type filter and open Amount again. The slider now stops at 100,000 sats, below both requests. There is no selectable range that covers their amounts. The saved requests retain their correct values. For the live-update case: 1. Use a wallet whose largest Activity transaction is 16,000,000 sats. 2. Open Amount and lower the upper limit to 10,250,000 sats. 3. Leave the popup open, then receive and confirm another 20,000,000 sats. 4. Compare the popup’s range with the visible Activity rows. The popup shows 0–20,000,000 sats, but the applied maximum remains 10,250,000. Both the existing 16,000,000-sat transaction and the new payment remain hidden. Closing and reopening the popup restores the displayed limit to 10,250,000 without changing the results. The same shared-slider mismatch also reproduces in View coins: a selected maximum of 7,503,906 sats is displayed as 9,000,000 after an incoming coin, while the 8,000,000- and 9,000,000-sat coins remain excluded. The available bounds should cover the amounts of the rows being filtered. If amount filtering is intended to apply only to transactions, request rows should instead be explicitly exempt. The displayed handles, range label and applied filter should also remain consistent when wallet updates change the available bounds. These inconsistencies originate in QML’s filtering and slider state. `updateAvailableMaxAmount()` excludes pending requests, while `filterAcceptsRow()` applies amount bounds to them. Separately, the shared `RangeSlider` binds its handle values to the available endpoints, allowing a bounds update to move the displayed handles without the user-movement handlers updating the filter. The request-range case was reproduced on merged `qt6` at `eed1f426fcb6`, macOS / Qt 6.9, using an isolated offscreen regtest profile. The live-update cases were reproduced in the native macOS GUI at `d567e3eb2497`; their relevant model and shared-slider source was checked unchanged at `eed1f426fcb6`, but those cases were not rerun in the latest pass. Related to [#579](https://github.com/bitcoin-core/gui-qml/issues/579) and [#923](https://github.com/bitcoin-core/gui-qml/issues/923). The inspected PR [#990](https://github.com/bitcoin-core/gui-qml/pull/990) head retains the request-bound inconsistency; its wallet refresh work does not fix these amount-filter states.
Sign in to join this conversation.
No description provided.