[#interfaces-BlockInfo] = xref:interfaces.adoc[interfaces]::BlockInfo :relfileprefix: ../ :mrdocs: Block data sent with blockConnected, blockDisconnected notifications. == Synopsis Declared in `<kernel/chain.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct BlockInfo; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:interfaces/BlockInfo/2constructor.adoc[`BlockInfo`] [.small]#[constructor]# | Constructs a BlockInfo referring to the given block hash. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:interfaces/BlockInfo/chain_time_max.adoc[`chain_time_max`] | Maximum block time in the chain up to and including this block. | xref:interfaces/BlockInfo/data.adoc[`data`] | Pointer to the block contents, or null when not loaded. | xref:interfaces/BlockInfo/data_pos.adoc[`data_pos`] | Byte offset of the block data within its block file. | xref:interfaces/BlockInfo/file_number.adoc[`file_number`] | Index of the block file on disk that stores this block. | xref:interfaces/BlockInfo/hash.adoc[`hash`] | Hash of this block. | xref:interfaces/BlockInfo/height.adoc[`height`] | Height of this block in the active chain. | xref:interfaces/BlockInfo/prev_hash.adoc[`prev_hash`] | Hash of the previous block, or null for the genesis block. | xref:interfaces/BlockInfo/undo_data.adoc[`undo_data`] | Pointer to the block undo data, or null when not loaded. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:kernel/MakeBlockInfo.adoc[`::kernel::MakeBlockInfo`] | Builds block metadata from a block index entry. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#