[#wallet-DescriptorScriptPubKeyMan-CanUpdateToWalletDescriptor]
= xref:wallet.adoc[wallet]::xref:wallet/DescriptorScriptPubKeyMan.adoc[DescriptorScriptPubKeyMan]::CanUpdateToWalletDescriptor
:relfileprefix: ../../
:mrdocs:

Returns whether this spkm can be updated to the given descriptor&period;

== Synopsis

Declared in `&lt;wallet&sol;scriptpubkeyman&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
CanUpdateToWalletDescriptor(
    xref:wallet/WalletDescriptor.adoc[WalletDescriptor] const& descriptor,
    std::string& error);
----

== Return Value

true if this spkm can be updated to the descriptor&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *descriptor*
| The descriptor to check for compatibility&period;
| *error*
| Filled with the reason if the update is not possible&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
