| 407 | } |
| 408 | |
| 409 | bool CWallet::AddWatchOnly(const CScript& dest) |
| 410 | { |
| 411 | if (!CCryptoKeyStore::AddWatchOnly(dest)) |
| 412 | return false; |
| 413 | nTimeFirstKey = 1; // No birthday information for watch-only keys. |
| 414 | NotifyWatchonlyChanged(true); |
| 415 | if (!fFileBacked) |
| 416 | return true; |
| 417 | return CWalletDB(strWalletFile).WriteWatchOnly(dest); |
| 418 | } |
| 419 | |
| 420 | bool CWallet::RemoveWatchOnly(const CScript& dest) |
| 421 | { |
no test coverage detected