mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:42:38 +00:00
"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
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#1125
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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>_watchonlyand<name>_solvables, and not that it succeeded. For an unencrypted wallet nothing is shown while it runs either.To reproduce:
legacy_mixedthat has its own key, an imported watch-only address and a multisig script.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."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_mixedwith its own balance and there is no message.legacy_mixed_watchonlyandlegacy_mixed_solvablesappear as ordinary rows under Open wallets, andlegacy_mixed_<unixtime>.legacy.bakis 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" untilrescanblockchainis run on it, after which it shows 3 BTC. Nothing says a rescan is needed. After a restart the app opens onlegacy_mixed_watchonlywithlegacy_mixedclosed, unless the wallet was on the start-up list before.<name>_watchonlyand removes the wallet under its own name. The badge changes to<name>_watchonlyand 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)..legacy.bakis 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.Core returns
backup_path,watchonly_nameandsolvables_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_pathand the names Core returned.Reproduced on
qt6at2bd5a61e8304, macOS arm64 / Qt 6.9.0, isolated regtest, offscreen and native; the main case behaved the same ateed1f426fcb6. Limits: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 withbitcoindalone (6 of 6). The text above gives the 29.0 result wherever the two differed.