node::BlockManager::LookupBlockIndex

Look up a block index entry by hash.

Synopsis

Declared in <node/blockstorage.h>

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.