aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0xlt <94266259+w0xlt@users.noreply.github.com>2022-01-19 14:45:49 -0300
committerw0xlt <94266259+w0xlt@users.noreply.github.com>2022-01-24 13:15:08 -0300
commit020acea99b605c9b5ee7939a6acef131db84ad4a (patch)
tree1672a8d9a2daac5c054d570d5b74b9016cdfc7a6
parentddeefeef20fa2fe48c3c4563370a6297704d228e (diff)
refactor: replace RecursiveMutex m_chainstate_mutex with Mutex
-rw-r--r--src/validation.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/validation.h b/src/validation.h
index d3c43c26e5..21b8f9579c 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.