mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Import wallet error on already imported wallet #947
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#947
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?
The main message can improve while the footnote makes sense. I guess the message could be a bit more user friendly.
cc @GBKS
Two additional cases for the import-error handling here, reproduced on
qt6atd567e3eb2497, macOS / Qt 6.9.0, using disposable regtest wallets.A valid backup needs missing block history, but the main message questions the backup
Core correctly rejects the restore because the required historical blocks are unavailable. The GUI’s main description instead tells the user to check that the file is a valid backup and try another file. The only action is Choose another file.
Core’s actual explanation—including the need to reindex—is present in the smaller help text, but the primary message and action suggest the wrong recovery.
In the reproduction, the backup was saved at height 106. After mining to 706 and pruning, the node’s prune height was 249. The original backup then failed to restore, while a fresh backup of the same wallet imported successfully. The original backup remained unchanged.
Please make the missing-history requirement the primary diagnosis and explain the appropriate recovery. Changing the message will not itself make the restore succeed.
A filename containing “migration” changes the diagnosis of an existing destination
audit_migration_73.bak.audit_migration_73, then unload it while leaving its directory on disk.The page says This wallet needs to be migrated, although the actual failure is that the destination database already exists. It also replaces the useful database-exists detail with migration guidance.
Using identical backup bytes under a neutral name, with the corresponding destination already present, produces the generic import error and retains the database-exists detail.
The classifier matches
migratanywhere in Core’s error string, including the wallet path. Wallet names should not determine the reported format or recovery action. Both cases need the underlying failure preserved and presented accurately.