aboutsummaryrefslogtreecommitdiff
path: root/src/addrman.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-05-23 21:11:00 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-06-14 17:28:38 +0300
commitae98aec9c0521cdcec76459c8200bd45ff6a1485 (patch)
tree3e091f0250b0938c47384082f6fc534232e8e9cd /src/addrman.h
parentf5d1c7fac70f424114dae3be270fdc31589a8c34 (diff)
downloadbitcoin-ae98aec9c0521cdcec76459c8200bd45ff6a1485.tar.xz
refactor: Make CAddrMan::cs non-recursive
Diffstat (limited to 'src/addrman.h')
-rw-r--r--src/addrman.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/addrman.h b/src/addrman.h
index ab97d6fb12..665e253192 100644
--- a/src/addrman.h
+++ b/src/addrman.h
@@ -626,8 +626,8 @@ protected:
FastRandomContext insecure_rand;
private:
- //! critical section to protect the inner data structures
- mutable RecursiveMutex cs;
+ //! A mutex to protect the inner data structures.
+ mutable Mutex cs;
//! Serialization versions.
enum Format : uint8_t {