aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2020-06-20 23:17:29 -0400
committerJohn Newbery <john@johnnewbery.com>2020-06-23 08:46:05 -0400
commit3556227ddd3365cfac43b307204d73058b2943f0 (patch)
treea786d4a4e19a142d6f80440c2143811c2c90a81d
parent344e831de54f7b864f03a90f6cb19692eafcd463 (diff)
[net] Make cs_inventory a non-recursive mutex
cs_inventory is never taken recursively. Make it a non-recursive mutex.
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index ddb185763f..3c23763954 100644
--- a/src/net.h
+++ b/src/net.h
@@ -803,7 +803,7 @@ public:
// There is no final sorting before sending, as they are always sent immediately
// and in the order requested.
std::vector<uint256> vInventoryBlockToSend GUARDED_BY(cs_inventory);
- RecursiveMutex cs_inventory;
+ Mutex cs_inventory;
struct TxRelay {
mutable RecursiveMutex cs_filter;