diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h --- a/src/wallet/scriptpubkeyman.h +++ b/src/wallet/scriptpubkeyman.h @@ -156,7 +156,7 @@ } }; -/* +/** * A class implementing ScriptPubKeyMan manages some (or all) scriptPubKeys used * in a wallet. It contains the scripts and keys related to the scriptPubKeys it * manages. A ScriptPubKeyMan will be able to give out scriptPubKeys to be used, diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -4986,8 +4986,7 @@ } LOCK(cs_wallet); - auto new_spk_man = std::unique_ptr( - new DescriptorScriptPubKeyMan(*this, desc)); + auto new_spk_man = std::make_unique(*this, desc); // If we already have this descriptor, remove it from the maps but add the // existing cache to desc