[#CBlockIndex-IsValid] = xref:CBlockIndex.adoc[CBlockIndex]::IsValid :relfileprefix: ../ :mrdocs: Check whether this block index entry is valid up to the passed validity level. == Synopsis Declared in `<chain.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f9500cbe3d8), requires_capability(0x7f9511905a18), requires_capability(0x7f951ec49c98), requires_capability(0x7f9524d79d98), requires_capability(0x7f9503ca0668), requires_capability(0x7f9516ce9d38), requires_capability(0x7f9520d77ff8), requires_capability(0x7f9524d44898), requires_capability(0x7f9517141c68), requires_capability(0x7f9516bbe708), requires_capability(0x7f94f38595b8)]] bool IsValid(xref:BlockStatus.adoc[BlockStatus] nUpTo) const; ---- == Return Value True if the entry has reached at least the given validity level and has not failed. == Parameters [cols="1,4"] |=== | Name| Description | *nUpTo* | The validity level to check against. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#