mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:42:38 +00:00
Wallet import descriptors #1144
No reviewers
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!1144
Loading…
Reference in a new issue
No description provided.
Delete branch "wallet-import-descriptors"
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?
Fixes #1058.
View-only import used to take only a plain xpub, always imported it as native SegWit, and never rescanned. Now it accepts:
listdescriptorsoutput[fingerprint/path]xpubypub/zpubxpub(asks for the address type)The import uses
importDescriptors, so it rescans from the birth time. When the input has no timestamps, the form asks when the wallet was created. Private keys and multisig are rejected.listdescriptorsMore states
vpubYou'll need to add a PR description or this will be closed.
6 additional verified findings in the Review report.
🟠 Minor · Terminal import-recovery states leave GUI backups blocked
An
incompleteinstallation cannot finish through recovery, and a repeatedly failing rescan keeps the same backup block, although the error tells users to back up once the import finishes.Location: qml/models/walletqmlmodel.cpp:1089 (head).
🟠 Minor · Reopening during cancelled recovery loses the replacement model's recovery state
Reopening a wallet before its cancelled recovery job retires leaves the replacement model without a history warning, retry action or backup guard until another reload.
Location: qml/walletqmlcontroller.cpp:574 (head).
🟠 Minor · Import exceptions bypass wallet and recovery-marker cleanup
A storage exception during descriptor setup now leaves a recovery marker behind; leaking the loaded wallet on exceptions was pre-existing, and no common production trigger was identified.
Location: qml/walletqmlcontroller.cpp:762 (head).
🟠 Minor · Failed import cleanup reports deletion without checking removal errors
If database-file removal fails, cleanup clears the recovery marker and reports the cancelled wallet deleted even though it remains on disk; production occurrence is unconfirmed.
Location: qml/walletqmlcontroller.cpp:122 (head).
🟠 Minor · Change-only imports pass the address-generation check but cannot receive
An active internal-only descriptor passes either parser, but the resulting wallet has no receive address types and Receive offers an ineffective retry.
Location: qml/viewonlyimport.cpp:292 (head).
🟠 Minor · Duplicate range errors are detected only after the import rescans
Repeated descriptors with non-containing ranges can trigger a full rescan before the failed import is deleted; no current producer of this JSON was identified.
Location: qml/viewonlyimport.cpp:243 (head).
Review coverage was incomplete.
Reviewed:
46324d90762c· Review report