MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / AddWatchOnlyInMem

Method AddWatchOnlyInMem

src/wallet/scriptpubkeyman.cpp:359–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359bool LegacyDataSPKM::AddWatchOnlyInMem(const CScript &dest)
360{
361 LOCK(cs_KeyStore);
362 setWatchOnly.insert(dest);
363 CPubKey pubKey;
364 if (ExtractPubKey(dest, pubKey)) {
365 mapWatchKeys[pubKey.GetID()] = pubKey;
366 ImplicitlyLearnRelatedKeyScripts(pubKey);
367 }
368 return true;
369}
370
371void LegacyDataSPKM::LoadHDChain(const CHDChain& chain)
372{

Callers

nothing calls this directly

Calls 3

ExtractPubKeyFunction · 0.85
insertMethod · 0.45
GetIDMethod · 0.45

Tested by

no test coverage detected