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).
Declared in <node/blockstorage.h>
[[requires_capability(0x7fb95f04d3a8), requires_capability(0x7fb969da7168), requires_capability(0x7fb96c563bb8), requires_capability(0x7fb9857a0c78), requires_capability(0x7fb96cb96588), requires_capability(0x7fb95a5b9ad8)]]
bool
CheckBlockDataAvailability(
CBlockIndex const& upper_block,
CBlockIndex const& lower_block,
BlockStatus block_status = BLOCK_HAVE_DATA);
True if every block in the range has the required data.
| 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". |