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

@@ -71,3 +71,9 @@ bool CBasicKeyStore::HaveWatchOnly(const CScript &dest) const
LOCK(cs_KeyStore);
return setWatchOnly.count(dest) > 0;
}
bool CBasicKeyStore::HaveWatchOnly() const
{
LOCK(cs_KeyStore);
return (!setWatchOnly.empty());
}