[#NextEmptyBlockIndex]
= NextEmptyBlockIndex
:mrdocs:

Return an empty block index on top of the tip, with height, time and nBits set

== Synopsis

Declared in `&lt;rpc&sol;server&lowbar;util&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
NextEmptyBlockIndex(
    xref:CBlockIndex.adoc[CBlockIndex]& tip,
    xref:Consensus/Params.adoc[Consensus::Params] const& consensusParams,
    xref:CBlockIndex.adoc[CBlockIndex]& next&lowbar;index);
----

== Return Value

an empty block index on top of the tip, with height, time and nBits set

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tip*
| The current chain tip to build on top of&period;
| *consensusParams*
| Consensus parameters used to set the new block&apos;s fields&period;
| *next&lowbar;index*
| Output block index initialized to sit on top of `tip&period;`
|===


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