| 150 | } |
| 151 | |
| 152 | bool 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 | |
| 165 | bool CBasicKeyStore::HaveWatchOnly(const CScript &dest) const |
| 166 | { |
nothing calls this directly
no test coverage detected