aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.h
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-02-28 20:20:41 -0800
committerAlexander Blair <snipa@jagtech.io>2020-02-28 20:21:06 -0800
commitda617ac1b0856eca5b5e94e4bc2b6c64575013b2 (patch)
treefa439893f892141ea4902bde130262b6a5b2671e /src/wallet/wallet2.h
parentMerge pull request #6222 (diff)
parentwallet2: guard against race with multiple decrypt_keys users (diff)
downloadmonero-da617ac1b0856eca5b5e94e4bc2b6c64575013b2.tar.xz
Merge pull request #6238
f717d593 wallet2: guard against race with multiple decrypt_keys users (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r--src/wallet/wallet2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h
index 810c002fe..80422bd2c 100644
--- a/src/wallet/wallet2.h
+++ b/src/wallet/wallet2.h
@@ -1618,6 +1618,8 @@ private:
crypto::chacha_key m_cache_key;
boost::optional<epee::wipeable_string> m_encrypt_keys_after_refresh;
+ boost::mutex m_decrypt_keys_lock;
+ unsigned int m_decrypt_keys_lockers;
bool m_unattended;
bool m_devices_registered;