| 2051 | } |
| 2052 | |
| 2053 | std::unique_ptr<FlatSigningProvider> DescriptorScriptPubKeyMan::GetSigningProvider(const CScript& script, bool include_private) const |
| 2054 | { |
| 2055 | LOCK(cs_desc_man); |
| 2056 | |
| 2057 | // Find the index of the script |
| 2058 | auto it = m_map_script_pub_keys.find(script); |
| 2059 | if (it == m_map_script_pub_keys.end()) { |
| 2060 | return nullptr; |
| 2061 | } |
| 2062 | int32_t index = it->second; |
| 2063 | |
| 2064 | return GetSigningProvider(index, include_private); |
| 2065 | } |
| 2066 | |
| 2067 | std::unique_ptr<FlatSigningProvider> DescriptorScriptPubKeyMan::GetSigningProvider(const CPubKey& pubkey) const |
| 2068 | { |
nothing calls this directly
no test coverage detected