Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/scriptpubkeyman.cpp
Show First 20 Lines • Show All 1,519 Lines • ▼ Show 20 Lines | |||||
bool DescriptorScriptPubKeyMan::GetNewDestination(const OutputType type, | bool DescriptorScriptPubKeyMan::GetNewDestination(const OutputType type, | ||||
CTxDestination &dest, | CTxDestination &dest, | ||||
std::string &error) { | std::string &error) { | ||||
return false; | return false; | ||||
} | } | ||||
isminetype DescriptorScriptPubKeyMan::IsMine(const CScript &script) const { | isminetype DescriptorScriptPubKeyMan::IsMine(const CScript &script) const { | ||||
LOCK(cs_desc_man); | |||||
if (m_map_script_pub_keys.count(script) > 0) { | |||||
return ISMINE_SPENDABLE; | |||||
} | |||||
return ISMINE_NO; | return ISMINE_NO; | ||||
} | } | ||||
bool DescriptorScriptPubKeyMan::CheckDecryptionKey( | bool DescriptorScriptPubKeyMan::CheckDecryptionKey( | ||||
const CKeyingMaterial &master_key, bool accept_no_keys) { | const CKeyingMaterial &master_key, bool accept_no_keys) { | ||||
return false; | return false; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
std::unique_ptr<SigningProvider> | std::unique_ptr<SigningProvider> | ||||
DescriptorScriptPubKeyMan::GetSolvingProvider(const CScript &script) const { | DescriptorScriptPubKeyMan::GetSolvingProvider(const CScript &script) const { | ||||
return nullptr; | return nullptr; | ||||
} | } | ||||
bool DescriptorScriptPubKeyMan::CanProvide(const CScript &script, | bool DescriptorScriptPubKeyMan::CanProvide(const CScript &script, | ||||
SignatureData &sigdata) { | SignatureData &sigdata) { | ||||
return false; | return IsMine(script); | ||||
} | } | ||||
bool DescriptorScriptPubKeyMan::SignTransaction( | bool DescriptorScriptPubKeyMan::SignTransaction( | ||||
CMutableTransaction &tx, const std::map<COutPoint, Coin> &coins, | CMutableTransaction &tx, const std::map<COutPoint, Coin> &coins, | ||||
SigHashType sighash, std::map<int, std::string> &input_errors) const { | SigHashType sighash, std::map<int, std::string> &input_errors) const { | ||||
return false; | return false; | ||||
} | } | ||||
Show All 27 Lines |