[#CBlockIndex-IsValid]
= xref:CBlockIndex.adoc[CBlockIndex]::IsValid
:relfileprefix: ../
:mrdocs:

Check whether this block index entry is valid up to the passed validity level&period;

== Synopsis

Declared in `&lt;chain&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e18da69a8), requires&lowbar;capability(0x7f2e18c0ab08), requires&lowbar;capability(0x7f2e3219cf68), requires&lowbar;capability(0x7f2e34801398), requires&lowbar;capability(0x7f2e331bb7f8), requires&lowbar;capability(0x7f2e32e73758), requires&lowbar;capability(0x7f2e42eed0a8), requires&lowbar;capability(0x7f2e2ad45a18), requires&lowbar;capability(0x7f2e318b8298), requires&lowbar;capability(0x7f2e283ee1f8), requires&lowbar;capability(0x7f2e29d40608)&rsqb;&rsqb;
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&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *nUpTo*
| The validity level to check against&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
