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

Name

Description

block

Output filled with the deserialized block.

index

The block index entry identifying the block to read.

Created with MrDocs