node::BlockManager::InsertBlockIndex

Create a new block index entry for a given block hash

Synopsis

Declared in <node/blockstorage.h>

[[requires_capability(0x7f2e1b099068), requires_capability(0x7f2e26d1a7c8), requires_capability(0x7f2e375e08a8), requires_capability(0x7f2e33367c68), requires_capability(0x7f2e3542ec58), requires_capability(0x7f2e28a737b8)]]
CBlockIndex*
InsertBlockIndex(uint256 const& hash);

Return Value

The new or existing block index entry for hash.

Parameters

NameDescription
hashThe block hash to insert.