refactor: replace RecursiveMutex m_chainstate_mutex with Mutex

This commit is contained in:
w0xlt
2022-01-19 14:45:49 -03:00
parent ddeefeef20
commit 020acea99b

View File

@ -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.