|
|
|
@ -328,8 +328,9 @@ public:
|
|
|
|
|
|
|
|
|
|
//! Raise the validity level of this block index entry.
|
|
|
|
|
//! Returns true if the validity was changed.
|
|
|
|
|
bool RaiseValidity(enum BlockStatus nUpTo)
|
|
|
|
|
bool RaiseValidity(enum BlockStatus nUpTo) EXCLUSIVE_LOCKS_REQUIRED(::cs_main)
|
|
|
|
|
{
|
|
|
|
|
AssertLockHeld(::cs_main);
|
|
|
|
|
assert(!(nUpTo & ~BLOCK_VALID_MASK)); // Only validity flags allowed.
|
|
|
|
|
if (nStatus & BLOCK_FAILED_MASK) return false;
|
|
|
|
|
|
|
|
|
|