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