Add boolean HaveWatchonly and signal NotifyWatchonlyChanged

This commit is contained in:
Cozz Lovan
2014-07-26 21:05:11 +02:00
parent 8b11d3de7a
commit 939ed97373
8 changed files with 66 additions and 10 deletions

View File

@@ -153,6 +153,7 @@ bool CWallet::AddWatchOnly(const CScript &dest)
if (!CCryptoKeyStore::AddWatchOnly(dest))
return false;
nTimeFirstKey = 1; // No birthday information for watch-only keys.
NotifyWatchonlyChanged(true);
if (!fFileBacked)
return true;
return CWalletDB(strWalletFile).WriteWatchOnly(dest);