Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/scriptpubkeyman.h
Show First 20 Lines • Show All 620 Lines • ▼ Show 20 Lines | |||||
private: | private: | ||||
WalletDescriptor m_wallet_descriptor GUARDED_BY(cs_desc_man); | WalletDescriptor m_wallet_descriptor GUARDED_BY(cs_desc_man); | ||||
// Map of scripts to descriptor range index | // Map of scripts to descriptor range index | ||||
using ScriptPubKeyMap = std::map<CScript, int32_t>; | using ScriptPubKeyMap = std::map<CScript, int32_t>; | ||||
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, | DescriptorScriptPubKeyMan(WalletStorage &storage, | ||||
WalletDescriptor &descriptor) | WalletDescriptor &descriptor) | ||||
: ScriptPubKeyMan(storage), m_wallet_descriptor(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; | mutable RecursiveMutex cs_desc_man; | ||||
bool GetNewDestination(const OutputType type, CTxDestination &dest, | bool GetNewDestination(const OutputType type, CTxDestination &dest, | ||||
std::string &error) override; | std::string &error) override; | ||||
isminetype IsMine(const CScript &script) const override; | isminetype IsMine(const CScript &script) const override; | ||||
bool CheckDecryptionKey(const CKeyingMaterial &master_key, | bool CheckDecryptionKey(const CKeyingMaterial &master_key, | ||||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |