Skip to content

Commit 020acea

Browse files
committed
refactor: replace RecursiveMutex m_chainstate_mutex with Mutex
1 parent ddeefee commit 020acea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/validation.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -533,10 +533,11 @@ class CChainState
533533
arith_uint256 nLastPreciousChainwork = 0;
534534

535535
/**
536-
* the ChainState CriticalSection
537-
* A lock that must be held when modifying this ChainState - held in ActivateBestChain()
536+
* The ChainState Mutex
537+
* A lock that must be held when modifying this ChainState - held in ActivateBestChain() and
538+
* InvalidateBlock()
538539
*/
539-
RecursiveMutex m_chainstate_mutex;
540+
Mutex m_chainstate_mutex;
540541

541542
/**
542543
* Whether this chainstate is undergoing initial block download.

0 commit comments

Comments
 (0)