Return an empty block index on top of the tip, with height, time and nBits set
Declared in <rpc/server_util.h>
void
NextEmptyBlockIndex(
CBlockIndex& tip,
Consensus::Params const& consensusParams,
CBlockIndex& next_index);
an empty block index on top of the tip, with height, time and nBits set
| Name | Description |
|---|---|
| tip | The current chain tip to build on top of. |
| consensusParams | Consensus parameters used to set the new block's fields. |
| next_index | Output block index initialized to sit on top of tip. |