[#node-BlockManager-CheckBlockDataAvailability] = xref:node.adoc[node]::xref:node/BlockManager.adoc[BlockManager]::CheckBlockDataAvailability :relfileprefix: ../../ :mrdocs: Check if all blocks in the [upper_block, lower_block]range have data available as defined by the status mask. The caller is responsible for ensuring that lower_block is an ancestor of upper_block (part of the same chain). == Synopsis Declared in `<node/blockstorage.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1b099718), requires_capability(0x7f2e26d1ae78), requires_capability(0x7f2e375e0f58), requires_capability(0x7f2e33368318), requires_capability(0x7f2e3542f308), requires_capability(0x7f2e28a73e68)]] bool CheckBlockDataAvailability( xref:CBlockIndex.adoc[CBlockIndex] const& upper_block, xref:CBlockIndex.adoc[CBlockIndex] const& lower_block, xref:BlockStatus.adoc[BlockStatus] block_status = BLOCK_HAVE_DATA); ---- == Return Value True if every block in the range has the required data. == Parameters [cols="1,4"] |=== | Name| Description | *upper_block* | The newest block in the range to check. | *lower_block* | The oldest block in the range to check; must be an ancestor of upper_block. | *block_status* | Status mask defining what counts as "data available". |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#