mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-20 08:53:36 +02:00
Store WalletDescriptor in DescriptorScriptPubKeyMan
This commit is contained in:
parent
d8132669e1
commit
834de0300c
@ -484,8 +484,17 @@ public:
|
|||||||
|
|
||||||
class DescriptorScriptPubKeyMan : public ScriptPubKeyMan
|
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:
|
public:
|
||||||
using ScriptPubKeyMan::ScriptPubKeyMan;
|
DescriptorScriptPubKeyMan(WalletStorage& storage, WalletDescriptor& descriptor)
|
||||||
|
: ScriptPubKeyMan(storage),
|
||||||
|
m_wallet_descriptor(descriptor)
|
||||||
|
{}
|
||||||
|
|
||||||
mutable RecursiveMutex cs_desc_man;
|
mutable RecursiveMutex cs_desc_man;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user