aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-10-29 13:53:07 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-10-29 13:53:57 +0000
commit3b8dcc290d87fd16698b6dca161ded22ee681fdc (patch)
tree8b3bb1fafc80dcb537aa4eb054390a27e3db37d2 /src/wallet/wallet2.h
parentMerge pull request #6044 (diff)
downloadmonero-3b8dcc290d87fd16698b6dca161ded22ee681fdc.tar.xz
wallet2: make keys unlocker reentrant
protects against having your keys mangled
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 640565a4e..d0c01fd71 100644
--- a/src/wallet/wallet2.h
+++ b/src/wallet/wallet2.h
@@ -122,6 +122,8 @@ private:
wallet2 &w;
bool locked;
crypto::chacha_key key;
+ static boost::mutex lockers_lock;
+ static unsigned int lockers;
};
class i_wallet2_callback