diff options
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 c6322eadce..72ae9b0a30 100644 --- a/src/keystore.cpp +++ b/src/keystore.cpp @@ -72,3 +72,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()); +} |