"Update wallet" on a legacy wallet says nothing about what Core did: no backup location, no word about the watch-only and solvables wallets it creates, no busy state, no success message #1125

Open
opened 2026-11-13 15:11:41 +00:00 by jarolrod · 0 comments
jarolrod commented 2026-11-13 15:11:41 +00:00 (Migrated from github.com)

Updating a legacy wallet from the picker runs Core's migration and tells the user nothing about the result: not where the backup is, not that part of the wallet may now sit in new wallets named <name>_watchonly and <name>_solvables, and not that it succeeded. For an unencrypted wallet nothing is shown while it runs either.

To reproduce:

  1. Start the app on a data directory holding a legacy wallet legacy_mixed that has its own key, an imported watch-only address and a multisig script.
  2. Click the wallet badge and click legacy_mixed. The popup says only "Wallet update required / This wallet uses a legacy format and needs to be updated before it can be opened."
  3. Click Update wallet.

The popup closes before the work starts. While the update runs nothing is on screen, and the picker rows, Add wallet and File → Add Wallet, Close Wallet, Backup Wallet and Exit stay enabled. An ordinary wallet load shows "Loading…" and disables them, and the encrypted route keeps its popup open with "Updating...".

Afterwards the badge reads legacy_mixed with its own balance and there is no message. legacy_mixed_watchonly and legacy_mixed_solvables appear as ordinary rows under Open wallets, and legacy_mixed_<unixtime>.legacy.bak is in the wallets directory, never mentioned. With a wallet written by Bitcoin Core 29.0 that had 1 BTC on its own key, 2 BTC on the watch-only address and 3 BTC on the multisig, the rows read 1, 2 and 0 BTC: the solvables wallet has no transactions and shows "No activity yet" until rescanblockchain is run on it, after which it shows 3 BTC. Nothing says a rescan is needed. After a restart the app opens on legacy_mixed_watchonly with legacy_mixed closed, unless the wallet was on the start-up list before.

Case Result
Wallet with only its own key One wallet, same balance. Only the unmentioned backup and the missing busy state remain.
Wallet created blank that holds only watch-only imports and no recorded transactions Core moves everything into <name>_watchonly and removes the wallet under its own name. The badge changes to <name>_watchonly and nothing is said. If the old name was on the start-up list, every later start stops at "Failed to load database path … Data is not in recognized format." (9 of 9 starts).
Same wallet with recorded transactions "Wallet update failed." and the wallet can no longer be opened or updated (bitcoin/bitcoin#36483; one offscreen run).
Quit during the update Shutdown page until the conversion ends, then exit 0. What is left depends on the wallet. If it is behind the chain tip, Core rolls the update back: the original file is restored and one more .legacy.bak is left (3 of 3 with a 29.0 wallet three blocks behind, and every run with the hand-built wallets: 28 of 28 offscreen, 11 of 11 native). If it is at the tip, the update is kept (3 of 3). The app says nothing in either case.
Process killed during the conversion The wallet is left half-converted: "Failed to open wallet … Wallet is a legacy wallet", no update offer, and import of the backup is refused (#629). The backup is intact. This was the state in every run killed 1 s or 3 s after the new file appeared (8 offscreen, 3 native); the #1116 crash can be that kill.

Core returns backup_path, watchonly_name and solvables_name. The app keeps only the wallet handle, and the popup is closed before the call:

github.com/bitcoin-core/gui-qml@2bd5a61e83/qml/walletqmlcontroller.cpp (L1266-L1274)

github.com/bitcoin-core/gui-qml@2bd5a61e83/qml/pages/wallet/DesktopWallets.qml (L538-L551)

Bitcoin-Qt, by its source, explains the split and the backup before starting (walletcontroller.cpp#L478-L499), shows a modal progress dialog, and names the new wallets afterwards.

Closed #517 asked for "Migration backup location is shown to user". The flow merged in #539 never showed it, and #548 replaced the page that had an "Updating wallet" state and a success screen. The pending state is tracked in #967.

Suggested: say beforehand that a backup is written and that watch-only or multisig entries move to separate wallets, and afterwards show backup_path and the names Core returned.

Reproduced on qt6 at 2bd5a61e8304, macOS arm64 / Qt 6.9.0, isolated regtest, offscreen and native; the main case behaved the same at eed1f426fcb6. Limits:

  • Most counts are from legacy wallets built by hand with db_load, with no HD chain and no key pool. I repeated the main case, the quit, both watch-only rows and the encrypted route offscreen with wallets written by Bitcoin Core 29.0, and the killed-process row with bitcoind alone (6 of 6). The text above gives the 29.0 result wherever the two differed.
  • Clicks went through the test bridge. Quits were the quit event, a window close or SIGTERM, not Cmd+Q or the menu, and the kill was SIGKILL. The start-up error dialog was read, not clicked. The backup reached Import through the test path field, not the file dialog.
  • No wallet behind the tip was used, so a long rescan inside the update was not seen. Bitcoin-Qt was read, not run.
Updating a legacy wallet from the picker runs Core's migration and tells the user nothing about the result: not where the backup is, not that part of the wallet may now sit in new wallets named `<name>_watchonly` and `<name>_solvables`, and not that it succeeded. For an unencrypted wallet nothing is shown while it runs either. To reproduce: 1. Start the app on a data directory holding a legacy wallet `legacy_mixed` that has its own key, an imported watch-only address and a multisig script. 2. Click the wallet badge and click `legacy_mixed`. The popup says only "Wallet update required / This wallet uses a legacy format and needs to be updated before it can be opened." 3. Click **Update wallet**. The popup closes before the work starts. While the update runs nothing is on screen, and the picker rows, **Add wallet** and File → Add Wallet, Close Wallet, Backup Wallet and Exit stay enabled. An ordinary wallet load shows "Loading…" and disables them, and the encrypted route keeps its popup open with "Updating...". Afterwards the badge reads `legacy_mixed` with its own balance and there is no message. `legacy_mixed_watchonly` and `legacy_mixed_solvables` appear as ordinary rows under **Open wallets**, and `legacy_mixed_<unixtime>.legacy.bak` is in the wallets directory, never mentioned. With a wallet written by Bitcoin Core 29.0 that had 1 BTC on its own key, 2 BTC on the watch-only address and 3 BTC on the multisig, the rows read 1, 2 and 0 BTC: the solvables wallet has no transactions and shows "No activity yet" until `rescanblockchain` is run on it, after which it shows 3 BTC. Nothing says a rescan is needed. After a restart the app opens on `legacy_mixed_watchonly` with `legacy_mixed` closed, unless the wallet was on the start-up list before. | Case | Result | |---|---| | Wallet with only its own key | One wallet, same balance. Only the unmentioned backup and the missing busy state remain. | | Wallet created blank that holds only watch-only imports and no recorded transactions | Core moves everything into `<name>_watchonly` and removes the wallet under its own name. The badge changes to `<name>_watchonly` and nothing is said. If the old name was on the start-up list, every later start stops at "Failed to load database path … Data is not in recognized format." (9 of 9 starts). | | Same wallet with recorded transactions | "Wallet update failed." and the wallet can no longer be opened or updated (bitcoin/bitcoin#36483; one offscreen run). | | Quit during the update | Shutdown page until the conversion ends, then exit 0. What is left depends on the wallet. If it is behind the chain tip, Core rolls the update back: the original file is restored and one more `.legacy.bak` is left (3 of 3 with a 29.0 wallet three blocks behind, and every run with the hand-built wallets: 28 of 28 offscreen, 11 of 11 native). If it is at the tip, the update is kept (3 of 3). The app says nothing in either case. | | Process killed during the conversion | The wallet is left half-converted: "Failed to open wallet … Wallet is a legacy wallet", no update offer, and import of the backup is refused (#629). The backup is intact. This was the state in every run killed 1 s or 3 s after the new file appeared (8 offscreen, 3 native); the #1116 crash can be that kill. | Core returns `backup_path`, `watchonly_name` and `solvables_name`. The app keeps only the wallet handle, and the popup is closed before the call: https://github.com/bitcoin-core/gui-qml/blob/2bd5a61e8304d5143e32f1ce977a2de2aceb6413/qml/walletqmlcontroller.cpp#L1266-L1274 https://github.com/bitcoin-core/gui-qml/blob/2bd5a61e8304d5143e32f1ce977a2de2aceb6413/qml/pages/wallet/DesktopWallets.qml#L538-L551 Bitcoin-Qt, by its source, explains the split and the backup before starting ([walletcontroller.cpp#L478-L499](https://github.com/bitcoin/bitcoin/blob/44901d8f64cb617714707bd025ecd83f108353c2/src/qt/walletcontroller.cpp#L478-L499)), shows a modal progress dialog, and names the new wallets afterwards. Closed #517 asked for "Migration backup location is shown to user". The flow merged in #539 never showed it, and #548 replaced the page that had an "Updating wallet" state and a success screen. The pending state is tracked in #967. Suggested: say beforehand that a backup is written and that watch-only or multisig entries move to separate wallets, and afterwards show `backup_path` and the names Core returned. Reproduced on `qt6` at `2bd5a61e8304`, macOS arm64 / Qt 6.9.0, isolated regtest, offscreen and native; the main case behaved the same at `eed1f426fcb6`. Limits: - Most counts are from legacy wallets built by hand with `db_load`, with no HD chain and no key pool. I repeated the main case, the quit, both watch-only rows and the encrypted route offscreen with wallets written by Bitcoin Core 29.0, and the killed-process row with `bitcoind` alone (6 of 6). The text above gives the 29.0 result wherever the two differed. - Clicks went through the test bridge. Quits were the quit event, a window close or SIGTERM, not Cmd+Q or the menu, and the kill was SIGKILL. The start-up error dialog was read, not clicked. The backup reached Import through the test path field, not the file dialog. - No wallet behind the tip was used, so a long rescan inside the update was not seen. Bitcoin-Qt was read, not run.
Sign in to join this conversation.
No description provided.