node::BlockManager::LookupBlockIndex

Look up a block index entry by hash.

Synopsis

Declared in <node/blockstorage.h>

[[requires_capability(0x7f2e1b099248), requires_capability(0x7f2e26d1a9a8), requires_capability(0x7f2e375e0a88), requires_capability(0x7f2e33367e48), requires_capability(0x7f2e3542ee38), requires_capability(0x7f2e28a73998)]]
CBlockIndex const*
LookupBlockIndex(uint256 const& hash) const;

Return Value

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

Parameters

NameDescription
hashThe block hash to look up.