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

Method RemoveWatchOnly

src/keystore.cpp:152–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152bool CBasicKeyStore::RemoveWatchOnly(const CScript &dest)
153{
154 LOCK(cs_KeyStore);
155 setWatchOnly.erase(dest);
156 CPubKey pubKey;
157 if (ExtractPubKey(dest, pubKey)) {
158 mapWatchKeys.erase(pubKey.GetID());
159 }
160 // Related CScripts are not removed; having superfluous scripts around is
161 // harmless (see comment in ImplicitlyLearnRelatedKeyScripts).
162 return true;
163}
164
165bool CBasicKeyStore::HaveWatchOnly(const CScript &dest) const
166{

Callers

nothing calls this directly

Calls 3

ExtractPubKeyFunction · 0.85
GetIDMethod · 0.80
eraseMethod · 0.45

Tested by

no test coverage detected