node::BlockManager::LookupBlockIndex

Look up a block index entry by hash.

Synopsis

Declared in <node/blockstorage.h>

[[requires_capability(0x7fd7532b06d8), requires_capability(0x7fd74e9c7628), requires_capability(0x7fd75a26b378), requires_capability(0x7fd74f16e7f8), requires_capability(0x7fd74a00de98), requires_capability(0x7fd7532657a8)]]
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.