kernel::MakeBlockInfo

Builds block metadata from a block index entry.

Synopsis

Declared in <kernel/chain.h>

interfaces::BlockInfo
MakeBlockInfo(
    CBlockIndex const* block_index,
    CBlock const* data = nullptr);

Return Value

A BlockInfo populated from the given block index and data.

Parameters

NameDescription
block_indexBlock index entry to read metadata from, may be null.
dataOptional block contents to attach to the result.