diff options
author | Cozz Lovan <cozzlovan@yahoo.com> | 2014-07-26 21:05:11 +0200 |
---|---|---|
committer | Cozz Lovan <cozzlovan@yahoo.com> | 2014-08-11 18:47:02 +0200 |
commit | 939ed97373fdea0e8ecb173f1c22eb53b9f90bb6 (patch) | |
tree | ce3d6651e29d593f422d4d199ba323e4b4ee5c10 /src/keystore.cpp | |
parent | 8b11d3de7aa4fc3f6c4e7bf292495850034ded2c (diff) |
Add boolean HaveWatchonly and signal NotifyWatchonlyChanged
Diffstat (limited to 'src/keystore.cpp')
-rw-r--r-- | src/keystore.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/keystore.cpp b/src/keystore.cpp index 2a4c88d565..81b7b076fa 100644 --- a/src/keystore.cpp +++ b/src/keystore.cpp @@ -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()); +} |