diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/scriptpubkeyman.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h index 2cf1817927..3e9db905fd 100644 --- a/src/wallet/scriptpubkeyman.h +++ b/src/wallet/scriptpubkeyman.h @@ -484,8 +484,17 @@ public: class DescriptorScriptPubKeyMan : public ScriptPubKeyMan { +private: + WalletDescriptor m_wallet_descriptor GUARDED_BY(cs_desc_man); + + using ScriptPubKeyMap = std::map<CScript, int32_t>; // Map of scripts to descriptor range index + + ScriptPubKeyMap m_map_script_pub_keys GUARDED_BY(cs_desc_man); public: - using ScriptPubKeyMan::ScriptPubKeyMan; + DescriptorScriptPubKeyMan(WalletStorage& storage, WalletDescriptor& descriptor) + : ScriptPubKeyMan(storage), + m_wallet_descriptor(descriptor) + {} mutable RecursiveMutex cs_desc_man; |