1 major finding · 1 minor finding · 3 suggestions
Findings
[major] · The complete export silently omits migrated legacy funds
A migrated legacy wallet can export only its new descriptors while the modal promises complete coverage, leaving a watch-only copy unable to monitor its pre-migration funds.
Location: qml/models/walletqmlmodel.cpp:1359 (head).
Details and suggested fix
ParseSingleKeyDescriptor() accepts only ranged single-key pkh, wpkh, sh(wpkh) and tr descriptors containing an xpub/tpub. Both collectors silently skip other forms. This matters for the GUI's legacy migration workflow: pinned Core retains old HD addresses in hardened combo(xpub/0h/ih/*h) descriptors, then creates new active single-key descriptors. The modal can therefore open and advertise a “Complete watch-only wallet” while omitting all pre-migration funds and history. Hardened combo derivation cannot be reproduced from public keys alone; the defect is promising completeness, not failing to export that derivation. Report skipped relevant managers and replace the complete/“see all” wording with an explicit partial-export warning. Also distinguish an absent change manager from an unsupported one: a supported wpkh receive manager with an active wsh change manager currently exports receive only and enables its extended key through !change. No current GUI-only path producing this mixed layout was identified. Disable the extended key for that unsupported-change case, and add a migrated or mixed-descriptor regression test. The source wallet retains its keys and spending ability.
[minor] · Extended-key mode automatically selects a script-ambiguous Taproot xpub
Without a saved receive-type preference, switching to Extended key selects Taproot's plain xpub/tpub, which this application's watch-only importer accepts as P2WPKH rather than Taproot.
Location: qml/models/walletqmlmodel.cpp:1335 (head).
Details and suggested fix
Slip132ExtendedKey() leaves the Taproot account key unchanged, so it carries no Taproot script-type information. From the initial all-types view, preferredAddressType() automatically selects Taproot when available and no preference is saved. Pasting that export into this application's createWatchOnlyWallet() installs wpkh(KEY/0/*) and wpkh(KEY/1/*). The resulting copy watches none of the source's Taproot addresses and issues receive scripts the source wallet does not watch. Descriptor format is the default, and the Taproot note recommends it, but the note does not explain that an importer can accept the key with a different script type. Specific external-wallet behavior was not verified. Leave extendedKey empty for bech32m and require its descriptor, rather than presenting the bare key as an interoperable watch-only export.
Optional improvements
[suggestion] · Ordinary keypool notifications rebuild the export just to determine visibility
With the settings binding alive, routine keypool notifications repeatedly serialize active descriptors under cs_wallet on the GUI thread, including decrypting stored keys when an encrypted wallet is unlocked.
Location: qml/models/walletqmlmodel.cpp:3478 (head).
Details and suggested fix
NotifyCanGetAddressesChanged also fires on successful keypool top-ups and destination returns. Each forwarded notification queues a separate watchOnlyExportsChanged, causing the settings binding to call canExportWatchOnly() and rebuild the full export. That takes cs_wallet, serializes up to eight active managers, and performs regex, checksum and base58 work merely to obtain a bool. Public serialization also calls GetKeys(), which decrypts stored encrypted keys while unlocked. This can repeat during wallet activity and contend with backend wallet work; its latency has not been measured. Cache the expensive availability result and use cheap descriptor-set metadata to decide when recomputation is needed. Coalesce redundant queued notifications while preserving genuine descriptor-change invalidation, and clarify that the Core signal is broader than descriptor replacement.
[suggestion] · An oversized complete export has no QR failure feedback
If a complete export exceeds one QR symbol's capacity, the provider returns a transparent placeholder without telling the user to use copy or save.
Location: qml/components/WatchOnlyExportModal.qml:245 (head).
Details and suggested fix
completeExports concatenates all active exports and qualifying used inactive descriptors without a size limit, then sends the entire payload to one QRImage. If QRcode_encodeString() fails, the provider returns a valid transparent 1×1 image, so ordinary image-load error handling would not reveal the failure. The modal has no encoding-status message, and the current test only checks that code equals payload. A sufficiently large collection of imported, used inactive single-key descriptors can reach this condition; no current GUI-only path reaching the limit was identified. Expose encoding success and show a message directing the user to copy or save when a symbol cannot be generated. Those alternatives already remain usable.
[suggestion] · An open export remains stale after same-wallet descriptor changes
If an RPC client activates a new descriptor while the modal is open, its complete export keeps the earlier descriptor snapshot until the user reopens it.
Location: qml/components/WatchOnlyExportModal.qml:63 (head).
Details and suggested fix
openForWallet() reads both descriptor lists once, and onWalletChanged only reacts to a different wallet object. An importdescriptors call with active: true can replace an active manager on the same wallet. Core emits the notification and the model forwards watchOnlyExportsChanged, but the modal does not observe it. QR, copy and save therefore remain mutually consistent while omitting the newly activated descriptor. This requires an RPC or console change during the open modal, and reopening recovers fresh data. Close the modal or mark its export stale when the active descriptor set actually changes, for example by comparing manager IDs. Do not refresh on every existing notification, since ordinary keypool top-ups also emit it and refreshing could alter a pending save's payload.