wallet::DescriptorScriptPubKeyMan::CreateFromMigration

Creates a DescriptorScriptPubKeyMan while migrating a legacy wallet.

Synopsis

Declared in <wallet/scriptpubkeyman.h>

static
std::unique_ptr<DescriptorScriptPubKeyMan>
CreateFromMigration(
    WalletStorage& storage,
    WalletBatch& batch,
    WalletDescriptor& descriptor,
    int64_t keypool_size,
    FlatSigningProvider const& provider);

Return Value

The new DescriptorScriptPubKeyMan.

Parameters

NameDescription
storageThe wallet storage this spkm is bound to.
batchThe database batch to write the new spkm through.
descriptorThe wallet descriptor produced by the migration.
keypool_sizeThe number of keys/scripts to keep pre-generated.
providerThe signing provider supplying keys for the descriptor.