wallet::DescriptorScriptPubKeyMan::CanUpdateToWalletDescriptor

Returns whether this spkm can be updated to the given descriptor.

Synopsis

Declared in <wallet/scriptpubkeyman.h>

bool
CanUpdateToWalletDescriptor(
    WalletDescriptor const& descriptor,
    std::string& error);

Return Value

true if this spkm can be updated to the descriptor.

Parameters

NameDescription
descriptorThe descriptor to check for compatibility.
errorFilled with the reason if the update is not possible.