MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetScriptPubKeyMan

Method GetScriptPubKeyMan

src/wallet/wallet.cpp:3419–3427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3417}
3418
3419ScriptPubKeyMan* CWallet::GetScriptPubKeyMan(const OutputType& type, bool internal) const
3420{
3421 const std::map<OutputType, ScriptPubKeyMan*>& spk_managers = internal ? m_internal_spk_managers : m_external_spk_managers;
3422 std::map<OutputType, ScriptPubKeyMan*>::const_iterator it = spk_managers.find(type);
3423 if (it == spk_managers.end()) {
3424 return nullptr;
3425 }
3426 return it->second;
3427}
3428
3429std::set<ScriptPubKeyMan*> CWallet::GetScriptPubKeyMans(const CScript& script) const
3430{

Callers 3

LoadWalletMethod · 0.80
taprootEnabledMethod · 0.80

Calls 4

findMethod · 0.80
countMethod · 0.80
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected