#include "keystore.h"
#include "script.h"
+extern bool fWalletUnlockMintOnly;
+
bool CKeyStore::GetPubKey(const CKeyID &address, CPubKey &vchPubKeyOut) const
{
CKey key;
return false;
}
+bool CBasicKeyStore::AddWatchOnly(const CTxDestination &dest)
+{
+ LOCK(cs_KeyStore);
+ setWatchOnly.insert(dest);
+ return true;
+}
+
+bool CBasicKeyStore::HaveWatchOnly(const CTxDestination &dest) const
+{
+ LOCK(cs_KeyStore);
+ return setWatchOnly.count(dest) > 0;
+}
+
bool CCryptoKeyStore::SetCrypted()
{
{
{
LOCK(cs_KeyStore);
vMasterKey.clear();
+ fWalletUnlockMintOnly = false;
}
NotifyStatusChanged(this);