diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-29 13:53:07 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-10-29 13:53:57 +0000 |
commit | 3b8dcc290d87fd16698b6dca161ded22ee681fdc (patch) | |
tree | 8b3bb1fafc80dcb537aa4eb054390a27e3db37d2 /src/wallet/wallet2.h | |
parent | Merge pull request #6044 (diff) | |
download | monero-3b8dcc290d87fd16698b6dca161ded22ee681fdc.tar.xz |
wallet2: make keys unlocker reentrant
protects against having your keys mangled
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2.h | 2 |
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 |