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

Constructors

== Synopses

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

Constructs an empty block index entry&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:CBlockIndex/2constructor-05.adoc[CBlockIndex]() = default;
----

[.small]#xref:CBlockIndex/2constructor-05.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:CBlockIndex/2constructor-0b.adoc[_» more&period;&period;&period;_]#

== 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]#
