Skip to content

Commit 015a394

Browse files
committed
Check for AssertLockNotHeld in EnforceBestChainLock() instead of just having a comment in code
1 parent f57e666 commit 015a394

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/llmq/quorums_chainlocks.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,9 @@ bool CChainLocksHandler::IsTxSafeForMining(const uint256& txid)
488488
// This should also not be called from validation signals, as this might result in recursive calls
489489
void CChainLocksHandler::EnforceBestChainLock()
490490
{
491+
AssertLockNotHeld(cs);
492+
AssertLockNotHeld(cs_main);
493+
491494
CChainLockSig clsig;
492495
const CBlockIndex* pindex;
493496
const CBlockIndex* currentBestChainLockBlockIndex;

0 commit comments

Comments
 (0)