node::BlockManager::CheckBlockDataAvailability

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>

[[requires_capability(0x7fd7532b0ba8), requires_capability(0x7fd74e9c7af8), requires_capability(0x7fd75a26b848), requires_capability(0x7fd74f16ecc8), requires_capability(0x7fd74a00e368), requires_capability(0x7fd753265c78)]]
bool
CheckBlockDataAvailability(
    CBlockIndex const& upper_block,
    CBlockIndex const& lower_block,
    BlockStatus block_status = BLOCK_HAVE_DATA);

Return Value

True if every block in the range has the required data.

Parameters

NameDescription
upper_blockThe newest block in the range to check.
lower_blockThe oldest block in the range to check; must be an ancestor of upper_block.
block_statusStatus mask defining what counts as "data available".