Addresses: Open details stay stale after receiving a payment #1041

Open
opened 2026-10-16 04:01:37 +00:00 by jarolrod · 0 comments
jarolrod commented 2026-10-16 04:01:37 +00:00 (Migrated from github.com)

I can leave Address details showing an unused address with zero funds after it has received a confirmed payment. The wallet balance updates, but the dialog still offers Create payment request. Following that action then saves a request for a different address in the same wallet, without explaining the change.

Reproduced on qt6 at d567e3eb2497, native macOS / Qt 6.9.0, with disposable regtest wallets.

To reproduce:

  1. Have a funded wallet A and a receiving wallet B. In B, go to Receive → More options → View addresses.
  2. Open the details of an unused address that has no saved payment request. Copy the address and leave its details open.
  3. Send 0.002 BTC from A to that address and mine a confirmation. I used RPC against the GUI’s node so the dialog stayed open.
  4. Wait for B’s balance to update. Address details still shows zero and offers Create payment request, even though the address has disappeared from the unused-address list behind it.
  5. Click Create payment request, enter a message and save it. The saved request uses a different address from the one selected in step 2.

As a control, closing the dialog, enabling Show used addresses and reopening the same address shows 0.002 BTC and hides the creation button. Without a payment arriving, creating a request from Address details preserves the selected address.

AddressList.qml copies the amount and used status when opening the dialog, but doesn't refresh them when the model changes. We should keep those details current and recheck the selected address before starting request creation. If it has become unavailable, tell the user instead of silently switching addresses.

Related to #914. Also relevant to #990, although this reproduces on qt6 independently of that PR.

I can leave Address details showing an unused address with zero funds after it has received a confirmed payment. The wallet balance updates, but the dialog still offers Create payment request. Following that action then saves a request for a different address in the same wallet, without explaining the change. Reproduced on `qt6` at [d567e3eb2497](https://github.com/bitcoin-core/gui-qml/commit/d567e3eb2497df3be5d63f4dc1f554b3bf51f59f), native macOS / Qt 6.9.0, with disposable regtest wallets. To reproduce: 1. Have a funded wallet A and a receiving wallet B. In B, go to Receive → More options → View addresses. 2. Open the details of an unused address that has no saved payment request. Copy the address and leave its details open. 3. Send 0.002 BTC from A to that address and mine a confirmation. I used RPC against the GUI’s node so the dialog stayed open. 4. Wait for B’s balance to update. Address details still shows zero and offers Create payment request, even though the address has disappeared from the unused-address list behind it. 5. Click Create payment request, enter a message and save it. The saved request uses a different address from the one selected in step 2. As a control, closing the dialog, enabling Show used addresses and reopening the same address shows 0.002 BTC and hides the creation button. Without a payment arriving, creating a request from Address details preserves the selected address. [AddressList.qml](https://github.com/bitcoin-core/gui-qml/blob/d567e3eb2497df3be5d63f4dc1f554b3bf51f59f/qml/pages/wallet/AddressList.qml#L287) copies the amount and used status when opening the dialog, but doesn't refresh them when the model changes. We should keep those details current and recheck the selected address before starting request creation. If it has become unavailable, tell the user instead of silently switching addresses. Related to #914. Also relevant to #990, although this reproduces on `qt6` independently of that PR.
Sign in to join this conversation.
No description provided.