mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-14 05:02:50 +02:00
Implement SetType in DescriptorScriptPubKeyMan
This commit is contained in:
@ -1608,4 +1608,8 @@ uint256 DescriptorScriptPubKeyMan::GetID() const
|
|||||||
return uint256();
|
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;
|
||||||
|
}
|
||||||
|
@ -490,11 +490,18 @@ private:
|
|||||||
using ScriptPubKeyMap = std::map<CScript, int32_t>; // Map of scripts to descriptor range index
|
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);
|
ScriptPubKeyMap m_map_script_pub_keys GUARDED_BY(cs_desc_man);
|
||||||
|
|
||||||
|
OutputType m_address_type;
|
||||||
|
bool m_internal;
|
||||||
public:
|
public:
|
||||||
DescriptorScriptPubKeyMan(WalletStorage& storage, WalletDescriptor& descriptor)
|
DescriptorScriptPubKeyMan(WalletStorage& storage, WalletDescriptor& descriptor)
|
||||||
: ScriptPubKeyMan(storage),
|
: ScriptPubKeyMan(storage),
|
||||||
m_wallet_descriptor(descriptor)
|
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;
|
mutable RecursiveMutex cs_desc_man;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user