[#CBlockIndex-2constructor-0b]
= xref:CBlockIndex.adoc[CBlockIndex]::CBlockIndex
:relfileprefix: ../
:mrdocs:

Constructs a block index entry from a block header&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
CBlockIndex(xref:CBlockHeader.adoc[CBlockHeader] const& block);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block*
| The header whose version, merkle root, time, bits, and nonce are copied&period;
|===


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