Do all steps to migrate a legacy wallet to a descriptor wallet
Declared in <wallet/wallet.h>
[[nodiscard]]
util::Result<MigrationResult>
MigrateLegacyToDescriptor(
std::string const& wallet_name,
SecureString const& passphrase,
WalletContext& context,
bool load_wallet = true);
The migration result, or an error on failure.
The return value should not be discarded.
| Name | Description |
|---|---|
| wallet_name | The name of the wallet to migrate. |
| passphrase | The passphrase to unlock an encrypted wallet. |
| context | The wallet context to migrate within. |
| load_wallet | Whether to load the migrated wallet afterward. |