From 020acea99b605c9b5ee7939a6acef131db84ad4a Mon Sep 17 00:00:00 2001 From: w0xlt <94266259+w0xlt@users.noreply.github.com> Date: Wed, 19 Jan 2022 14:45:49 -0300 Subject: [PATCH] refactor: replace RecursiveMutex m_chainstate_mutex with Mutex --- src/validation.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/validation.h b/src/validation.h index d3c43c26e5a..21b8f9579c1 100644 --- a/src/validation.h +++ b/src/validation.h @@ -533,10 +533,11 @@ protected: arith_uint256 nLastPreciousChainwork = 0; /** - * the ChainState CriticalSection - * A lock that must be held when modifying this ChainState - held in ActivateBestChain() + * The ChainState Mutex + * A lock that must be held when modifying this ChainState - held in ActivateBestChain() and + * InvalidateBlock() */ - RecursiveMutex m_chainstate_mutex; + Mutex m_chainstate_mutex; /** * Whether this chainstate is undergoing initial block download.