CBlockIndex::IsValid

Check whether this block index entry is valid up to the passed validity level.

Synopsis

Declared in <chain.h>

[[requires_capability(0x7ff36cbf2a78), requires_capability(0x7ff379204fb8), requires_capability(0x7ff39283af98), requires_capability(0x7ff3833692b8), requires_capability(0x7ff38bd20e18), requires_capability(0x7ff392c20cd8), requires_capability(0x7ff36c1618e8), requires_capability(0x7ff381ccf438), requires_capability(0x7ff38d75c488), requires_capability(0x7ff36872d138), requires_capability(0x7ff3743a6e78)]]
bool
IsValid(BlockStatus nUpTo) const;

Return Value

True if the entry has reached at least the given validity level and has not failed.

Parameters

NameDescription
nUpToThe validity level to check against.