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

Method GetScriptPubKeys

src/wallet/scriptpubkeyman.cpp:2311–2321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2309}
2310
2311const std::vector<CScript> DescriptorScriptPubKeyMan::GetScriptPubKeys() const
2312{
2313 LOCK(cs_desc_man);
2314 std::vector<CScript> script_pub_keys;
2315 script_pub_keys.reserve(m_map_script_pub_keys.size());
2316
2317 for (auto const& script_pub_key: m_map_script_pub_keys) {
2318 script_pub_keys.push_back(script_pub_key.first);
2319 }
2320 return script_pub_keys;
2321}
2322
2323bool DescriptorScriptPubKeyMan::GetDescriptorString(std::string& out, const bool priv) const
2324{

Callers 1

AddWalletDescriptorMethod · 0.80

Calls 3

reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected