| 375 | } |
| 376 | |
| 377 | bool CWallet::AddWatchOnly(const CScript& dest) |
| 378 | { |
| 379 | if (!CCryptoKeyStore::AddWatchOnly(dest)) |
| 380 | return false; |
| 381 | const CKeyMetadata& meta = m_script_metadata[CScriptID(dest)]; |
| 382 | UpdateTimeFirstKey(meta.nCreateTime); |
| 383 | NotifyWatchonlyChanged(true); |
| 384 | return WalletBatch(*database).WriteWatchOnly(dest, meta); |
| 385 | } |
| 386 | |
| 387 | bool CWallet::AddWatchOnly(const CScript& dest, int64_t nCreateTime) |
| 388 | { |
no test coverage detected