We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9f3aa5 commit ca47b00Copy full SHA for ca47b00
src/chain.h
@@ -311,7 +311,9 @@ class CBlockIndex
311
312
//! Check whether this block index entry is valid up to the passed validity level.
313
bool IsValid(enum BlockStatus nUpTo = BLOCK_VALID_TRANSACTIONS) const
314
+ EXCLUSIVE_LOCKS_REQUIRED(::cs_main)
315
{
316
+ AssertLockHeld(::cs_main);
317
assert(!(nUpTo & ~BLOCK_VALID_MASK)); // Only validity flags allowed.
318
if (nStatus & BLOCK_FAILED_MASK)
319
return false;
0 commit comments