MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetCScript

Method GetCScript

src/keystore.cpp:112–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112bool CBasicKeyStore::GetCScript(const CScriptID &hash, CScript& redeemScriptOut) const
113{
114 LOCK(cs_KeyStore);
115 ScriptMap::const_iterator mi = mapScripts.find(hash);
116 if (mi != mapScripts.end())
117 {
118 redeemScriptOut = (*mi).second;
119 return true;
120 }
121 return false;
122}
123
124static bool ExtractPubKey(const CScript &dest, CPubKey& pubKeyOut)
125{

Callers 1

GetKeyForDestinationFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected