Add a block header to the in‐memory block index, updating the best header.
Synopsis
Declared in <node/blockstorage.h>
[[requires_capability(0x7ff37af16838), requires_capability(0x7ff376b83818), requires_capability(0x7ff37ded1408), requires_capability(0x7ff36c616628), requires_capability(0x7ff37c49a488), requires_capability(0x7ff39283ce88)]]
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