[#kernel-MakeBlockInfo] = xref:kernel.adoc[kernel]::MakeBlockInfo :relfileprefix: ../ :mrdocs: Builds block metadata from a block index entry. == Synopsis Declared in `<kernel/chain.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:interfaces/BlockInfo.adoc[interfaces::BlockInfo] MakeBlockInfo( xref:CBlockIndex.adoc[CBlockIndex] const* block_index, xref:CBlock.adoc[CBlock] const* data = nullptr); ---- == Return Value A BlockInfo populated from the given block index and data. == Parameters [cols="1,4"] |=== | Name| Description | *block_index* | Block index entry to read metadata from, may be null. | *data* | Optional block contents to attach to the result. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#