diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-08-26 17:41:03 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-08-26 17:41:33 +0200 |
commit | d49b0876a4f4e5f8d7763fd2192f1efd0ddeec1e (patch) | |
tree | 5394e31d833b3ae8d2cd925a88c12d4acb581b60 /src/keystore.cpp | |
parent | b9bd6282c5d1d8c72c8731df202b3e4f7d60f340 (diff) | |
parent | 1c5f0af0fd8b5630470d471d8319a7c979aa2587 (diff) |
Merge pull request #4673
1c5f0af [Qt] Add column Watch-only to transactions list (Cozz Lovan)
939ed97 Add boolean HaveWatchonly and signal NotifyWatchonlyChanged (Cozz Lovan)
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()); +} |