[#interfaces-BlockInfo]
= xref:interfaces.adoc[interfaces]::BlockInfo
:relfileprefix: ../
:mrdocs:

Block data sent with blockConnected, blockDisconnected notifications&period;

== Synopsis

Declared in `&lt;kernel&sol;chain&period;h&gt;`

[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&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:interfaces/BlockInfo/chain_time_max.adoc[`chain&lowbar;time&lowbar;max`] 
| Maximum block time in the chain up to and including this block&period;
| xref:interfaces/BlockInfo/data.adoc[`data`] 
| Pointer to the block contents, or null when not loaded&period;
| xref:interfaces/BlockInfo/data_pos.adoc[`data&lowbar;pos`] 
| Byte offset of the block data within its block file&period;
| xref:interfaces/BlockInfo/file_number.adoc[`file&lowbar;number`] 
| Index of the block file on disk that stores this block&period;
| xref:interfaces/BlockInfo/hash.adoc[`hash`] 
| Hash of this block&period;
| xref:interfaces/BlockInfo/height.adoc[`height`] 
| Height of this block in the active chain&period;
| xref:interfaces/BlockInfo/prev_hash.adoc[`prev&lowbar;hash`] 
| Hash of the previous block, or null for the genesis block&period;
| xref:interfaces/BlockInfo/undo_data.adoc[`undo&lowbar;data`] 
| Pointer to the block undo data, or null when not loaded&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:kernel/MakeBlockInfo.adoc[`&colon;&colon;kernel&colon;&colon;MakeBlockInfo`]
| Builds block metadata from a block index entry&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
