Add a block header to the in‐memory block index, updating the best header.

Synopsis

Declared in <node/blockstorage.h>

CBlockIndex*
AddToBlockIndex(
    CBlockHeader const& block,
    CBlockIndex*& best_header);

Return Value

The block index entry for block.

Parameters

Name

Description

block

The block header to add.

best_header

Reference to the best‐header pointer, updated if this block is better.

Created with MrDocs