aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/scriptpubkeyman.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2019-12-05 18:02:36 -0500
committerAndrew Chow <achow101-github@achow101.com>2019-12-06 15:05:48 -0500
commit14b5efd66ff0afbf3bf9158a724534a9090fc7fc (patch)
treec01bb76824220e70644b55c25c30b4084b80ce5a /src/wallet/scriptpubkeyman.h
parent97c0374a46943b2ed38ea24eeeff1f1568dd55b3 (diff)
downloadbitcoin-14b5efd66ff0afbf3bf9158a724534a9090fc7fc.tar.xz
Move fDecryptionThoroughlyChecked from CWallet to LegacyScriptPubKeyMan
Diffstat (limited to 'src/wallet/scriptpubkeyman.h')
-rw-r--r--src/wallet/scriptpubkeyman.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h
index f5d7bc658a..89e9dc01a3 100644
--- a/src/wallet/scriptpubkeyman.h
+++ b/src/wallet/scriptpubkeyman.h
@@ -198,6 +198,9 @@ public:
class LegacyScriptPubKeyMan : public ScriptPubKeyMan, public FillableSigningProvider
{
private:
+ //! keeps track of whether Unlock has run a thorough check before
+ bool fDecryptionThoroughlyChecked = false;
+
using WatchOnlySet = std::set<CScript>;
using WatchKeyMap = std::map<CKeyID, CPubKey>;
@@ -417,7 +420,6 @@ public:
CWallet& m_wallet;
CCriticalSection& cs_wallet;
std::atomic<bool>& fUseCrypto;
- bool& fDecryptionThoroughlyChecked;
};
#endif // BITCOIN_WALLET_SCRIPTPUBKEYMAN_H