Blank legacy wallets do not have active SPKM. They can only be detected by checking the descriptors’ flag or the db format.
This enables the migration of blank legacy wallets in the GUI.
To test this:
- Create a blank legacy wallet.
- Try to migrate it using the GUI’s toolbar “Migrate Wallet” button.
-> In master: The button will be disabled because
CWallet::IsLegacy()
returns false for blank legacy wallet. -> In this PR: the button will be enabled, allowing the migration of legacy wallets.