MCPcopy Create free account
hub / github.com/LUX-Core/lux / AddWatchOnly

Method AddWatchOnly

src/keystore.cpp:139–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

ExtractPubKeyFunction · 0.85
insertMethod · 0.45
GetIDMethod · 0.45

Tested by

no test coverage detected