Skip to content

Commit 834de03

Browse files
committed
Store WalletDescriptor in DescriptorScriptPubKeyMan
1 parent d813266 commit 834de03

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/wallet/scriptpubkeyman.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,17 @@ class LegacySigningProvider : public SigningProvider
484484

485485
class DescriptorScriptPubKeyMan : public ScriptPubKeyMan
486486
{
487+
private:
488+
WalletDescriptor m_wallet_descriptor GUARDED_BY(cs_desc_man);
489+
490+
using ScriptPubKeyMap = std::map<CScript, int32_t>; // Map of scripts to descriptor range index
491+
492+
ScriptPubKeyMap m_map_script_pub_keys GUARDED_BY(cs_desc_man);
487493
public:
488-
using ScriptPubKeyMan::ScriptPubKeyMan;
494+
DescriptorScriptPubKeyMan(WalletStorage& storage, WalletDescriptor& descriptor)
495+
: ScriptPubKeyMan(storage),
496+
m_wallet_descriptor(descriptor)
497+
{}
489498

490499
mutable RecursiveMutex cs_desc_man;
491500

0 commit comments

Comments
 (0)