| 391 | } |
| 392 | |
| 393 | bool CWallet::RemoveWatchOnly(const CScript &dest) |
| 394 | { |
| 395 | AssertLockHeld(cs_wallet); |
| 396 | if (!CCryptoKeyStore::RemoveWatchOnly(dest)) |
| 397 | return false; |
| 398 | if (!HaveWatchOnly()) |
| 399 | NotifyWatchonlyChanged(false); |
| 400 | if (!WalletBatch(*database).EraseWatchOnly(dest)) |
| 401 | return false; |
| 402 | |
| 403 | return true; |
| 404 | } |
| 405 | |
| 406 | bool CWallet::LoadWatchOnly(const CScript &dest) |
| 407 | { |
nothing calls this directly
no test coverage detected