[#node-BlockManager-InsertBlockIndex]
= xref:node.adoc[node]::xref:node/BlockManager.adoc[BlockManager]::InsertBlockIndex
:relfileprefix: ../../
:mrdocs:

Create a new block index entry for a given block hash

== Synopsis

Declared in `&lt;node&sol;blockstorage&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f95130c90b8), requires&lowbar;capability(0x7f950163c3a8), requires&lowbar;capability(0x7f95241d9398), requires&lowbar;capability(0x7f951f330698), requires&lowbar;capability(0x7f950b9c2658), requires&lowbar;capability(0x7f95175c4da8)&rsqb;&rsqb;
xref:CBlockIndex.adoc[CBlockIndex]*
InsertBlockIndex(xref:uint256.adoc[uint256] const& hash);
----

== Return Value

The new or existing block index entry for `hash&period;`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hash*
| The block hash to insert&period;
|===


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