wallet::CWallet::ApplyMigrationData

Adds the ScriptPubKeyMans from MigrationData to this wallet, removes the LegacyDataSPKM, and moves transaction and address book entries to watchonly_wallet or solvable_wallet as needed.

Synopsis

Declared in <wallet/wallet.h>

[[requires_capability(0x7f94fde07418), requires_capability(0x7f95061aa158), requires_capability(0x7f94f2b7ac68), requires_capability(0x7f94f0cf98f8), requires_capability(0x7f94fee3c2e8)]]
util::Result<void>
ApplyMigrationData(
    WalletBatch& local_wallet_batch,
    MigrationData& data);

Return Value

Success, or an error if the migration data could not be applied.

Parameters

NameDescription
local_wallet_batchThe database batch of this wallet to write through.
dataThe migration data to apply.