diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-05-19 18:20:32 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-05-19 18:26:28 +0000 |
commit | 7ebb351c2d6b4f10c83c4996c599d36c31955187 (patch) | |
tree | 1c67df0de861444aeb280e0fc1f5984c3345e764 /src/rpc/rpc_payment.h | |
parent | Merge pull request #6510 (diff) | |
download | monero-7ebb351c2d6b4f10c83c4996c599d36c31955187.tar.xz |
rpc: lock access to the rpc payment object
Diffstat (limited to 'src/rpc/rpc_payment.h')
-rw-r--r-- | src/rpc/rpc_payment.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/rpc_payment.h b/src/rpc/rpc_payment.h index f6832fd34..20117985f 100644 --- a/src/rpc/rpc_payment.h +++ b/src/rpc/rpc_payment.h @@ -31,6 +31,7 @@ #include <string> #include <unordered_set> #include <unordered_map> +#include <boost/thread/mutex.hpp> #include <boost/serialization/version.hpp> #include "cryptonote_basic/blobdatatype.h" #include "cryptonote_basic/cryptonote_basic.h" @@ -139,6 +140,7 @@ namespace cryptonote uint64_t m_nonces_stale; uint64_t m_nonces_bad; uint64_t m_nonces_dupe; + mutable boost::mutex mutex; }; } |