Review report

core: PR #36333

đźź  Major

Migration fails for watch-only transactions when no spendable material exists (src/wallet/wallet.cpp:3856, head)

When the legacy wallet has no spendable material and a transaction is copied to the separate watch-only wallet, !is_mine now continues without removing the transaction from the original wallet. The later postcondition still requires mapWallet to be empty and returns “Not all transaction records were migrated.” The previous code removed these transactions before that check. Preserve the intended migration behavior while retaining the transaction in the appropriate migrated wallet.

🟡 Minor

Retained watch-only transactions can be rebroadcast (src/wallet/wallet.cpp:3856, head)

Watch-only-only transactions remain in the migrated wallet’s mapWallet. The rebroadcast path considers unconfirmed entries without checking whether they belong to that wallet. With broadcasting enabled, the migrated wallet can therefore submit or relay one of these transactions even if the separate watch-only wallet has been unloaded. Consider marking retained records ineligible for automatic submission or filtering irrelevant transactions from rebroadcast, while preserving rebroadcast for transactions relevant to each wallet.