node::BlockManager::ReadBlock

Read a block from disk using its block index entry.

Synopsis

Declared in <node/blockstorage.h>

bool
ReadBlock(
    CBlock& block,
    CBlockIndex const& index) const;

Return Value

True on success, false if the block could not be read.

Parameters

NameDescription
blockOutput filled with the deserialized block.
indexThe block index entry identifying the block to read.