| 418 | } |
| 419 | |
| 420 | bool CWallet::RemoveWatchOnly(const CScript& dest) |
| 421 | { |
| 422 | AssertLockHeld(cs_wallet); |
| 423 | if (!CCryptoKeyStore::RemoveWatchOnly(dest)) |
| 424 | return false; |
| 425 | if (!HaveWatchOnly()) |
| 426 | NotifyWatchonlyChanged(false); |
| 427 | if (fFileBacked) |
| 428 | if (!CWalletDB(strWalletFile).EraseWatchOnly(dest)) |
| 429 | return false; |
| 430 | |
| 431 | return true; |
| 432 | } |
| 433 | |
| 434 | bool CWallet::LoadWatchOnly(const CScript& dest) |
| 435 | { |
nothing calls this directly
no test coverage detected