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

Method AddWatchOnly

src/keystore.cpp:140–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140bool CBasicKeyStore::AddWatchOnly(const CScript &dest)
141{
142 LOCK(cs_KeyStore);
143 setWatchOnly.insert(dest);
144 CPubKey pubKey;
145 if (ExtractPubKey(dest, pubKey)) {
146 mapWatchKeys[pubKey.GetID()] = pubKey;
147 ImplicitlyLearnRelatedKeyScripts(pubKey);
148 }
149 return true;
150}
151
152bool CBasicKeyStore::RemoveWatchOnly(const CScript &dest)
153{

Callers

nothing calls this directly

Calls 3

ExtractPubKeyFunction · 0.85
GetIDMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected