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

Name

Description

block_index

Block index entry to read metadata from, may be null.

data

Optional block contents to attach to the result.

Created with MrDocs