[#CheckBlockDataAvailability]
= CheckBlockDataAvailability
:mrdocs:

Check that a block&apos;s data (and optionally undo data) is available on disk&period;

== Synopsis

Declared in `&lt;rpc&sol;blockchain&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e2991c1a0)&rsqb;&rsqb;
void
CheckBlockDataAvailability(
    xref:node/BlockManager.adoc[node::BlockManager]& blockman,
    xref:CBlockIndex.adoc[CBlockIndex] const& blockindex,
    bool check&lowbar;for&lowbar;undo);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *blockman*
| The block manager to query&period;
| *blockindex*
| The block index entry to check&period;
| *check&lowbar;for&lowbar;undo*
| Whether to also require the block&apos;s undo data&period;
|===


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