diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h --- a/src/wallet/scriptpubkeyman.h +++ b/src/wallet/scriptpubkeyman.h @@ -626,10 +626,17 @@ ScriptPubKeyMap m_map_script_pub_keys GUARDED_BY(cs_desc_man); + OutputType m_address_type; + bool m_internal; + public: DescriptorScriptPubKeyMan(WalletStorage &storage, WalletDescriptor &descriptor) : ScriptPubKeyMan(storage), m_wallet_descriptor(descriptor) {} + DescriptorScriptPubKeyMan(WalletStorage &storage, OutputType address_type, + bool internal) + : ScriptPubKeyMan(storage), m_address_type(address_type), + m_internal(internal) {} mutable RecursiveMutex cs_desc_man; diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -1622,4 +1622,7 @@ return uint256(); } -void DescriptorScriptPubKeyMan::SetType(OutputType type, bool internal) {} +void DescriptorScriptPubKeyMan::SetType(OutputType type, bool internal) { + this->m_address_type = type; + this->m_internal = internal; +}