| 137 | } |
| 138 | |
| 139 | bool 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 | |
| 151 | bool CBasicKeyStore::RemoveWatchOnly(const CScript& dest) |
| 152 | { |
nothing calls this directly
no test coverage detected