From ae98aec9c0521cdcec76459c8200bd45ff6a1485 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sun, 23 May 2021 21:11:00 +0300 Subject: [PATCH] refactor: Make CAddrMan::cs non-recursive --- src/addrman.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/addrman.h b/src/addrman.h index ab97d6fb124..665e2531926 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 {