Activity: CSV export can save a different wallet's history #999

Closed
opened 2026-10-12 05:03:53 +00:00 by jarolrod · 1 comment
jarolrod commented 2026-10-12 05:03:53 +00:00 (Migrated from github.com)

I reproduced an Activity export saving wallet B's transactions after opening the export dialog for wallet A. Loading B through RPC changes the selected wallet while the native Save dialog remains open.

To reproduce:

  1. Prepare two disposable regtest wallets, A and B, with distinguishable transactions. One block mined to each wallet is enough; retain their transaction IDs for comparison.
  2. Start the GUI with RPC enabled and only A loaded. Open Activity → Export CSV.
  3. Choose a filename such as wallet-A-activity.csv, but leave the Save dialog open.
  4. From a separate terminal connected to the GUI's RPC server, run loadwallet "B" false. Wait for the GUI to select B.
  5. Accept the original Save dialog.
  6. Compare the exported transaction IDs with each wallet's history.

The resulting file contained B's transaction and omitted A's.

We should keep the export tied to the wallet and view it was opened for, or cancel when that context changes. Loading another wallet should not silently change the source of an open export.

Tested on qt6 at 09c6de77d7f36bf7fa07c354ebeea51105c447a3, macOS arm64, Qt 6.9.0. I used the unchanged application and the native macOS Save dialog. The exported transaction IDs were checked against Core RPC.

Related to #969. #991 reports the corresponding backup-dialog problem.

I reproduced an Activity export saving wallet B's transactions after opening the export dialog for wallet A. Loading B through RPC changes the selected wallet while the native Save dialog remains open. To reproduce: 1. Prepare two disposable regtest wallets, A and B, with distinguishable transactions. One block mined to each wallet is enough; retain their transaction IDs for comparison. 2. Start the GUI with RPC enabled and only A loaded. Open Activity → Export CSV. 3. Choose a filename such as `wallet-A-activity.csv`, but leave the Save dialog open. 4. From a separate terminal connected to the GUI's RPC server, run `loadwallet "B" false`. Wait for the GUI to select B. 5. Accept the original Save dialog. 6. Compare the exported transaction IDs with each wallet's history. The resulting file contained B's transaction and omitted A's. We should keep the export tied to the wallet and view it was opened for, or cancel when that context changes. Loading another wallet should not silently change the source of an open export. Tested on `qt6` at `09c6de77d7f36bf7fa07c354ebeea51105c447a3`, macOS arm64, Qt 6.9.0. I used the unchanged application and the native macOS Save dialog. The exported transaction IDs were checked against Core RPC. Related to #969. #991 reports the corresponding backup-dialog problem.
pseudoramdom commented 2026-10-16 00:39:01 +00:00 (Migrated from github.com)

Quite similar to #992 , #993. I'll take this as well.

Quite similar to #992 , #993. I'll take this as well.
Sign in to join this conversation.
No description provided.