interfaces::BlockInfo

Block data sent with blockConnected, blockDisconnected notifications.

Synopsis

Declared in <kernel/chain.h>

struct BlockInfo;

Member Functions

NameDescription
BlockInfo [constructor]Constructs a BlockInfo referring to the given block hash.

Data Members

NameDescription
chain_time_max Maximum block time in the chain up to and including this block.
data Pointer to the block contents, or null when not loaded.
data_pos Byte offset of the block data within its block file.
file_number Index of the block file on disk that stores this block.
hash Hash of this block.
height Height of this block in the active chain.
prev_hash Hash of the previous block, or null for the genesis block.
undo_data Pointer to the block undo data, or null when not loaded.

Non-Member Functions

NameDescription
::kernel::MakeBlockInfoBuilds block metadata from a block index entry.