node::BlockManager::LookupBlockIndex

Look up a block index entry by hash.

Synopsis

Declared in <node/blockstorage.h>

[[requires_capability(0x7f95130c91f8), requires_capability(0x7f950163c4e8), requires_capability(0x7f95241d94d8), requires_capability(0x7f951f3307d8), requires_capability(0x7f950b9c2798), requires_capability(0x7f95175c4ee8)]]
CBlockIndex*
LookupBlockIndex(uint256 const& hash);

Return Value

The block index entry, or nullptr if the hash is unknown.

Parameters

NameDescription
hashThe block hash to look up.