node::BlockManager::LookupBlockIndex

Look up a block index entry by hash.

Synopsis

Declared in <node/blockstorage.h>

[[requires_capability(0x7ff37af16ab8), requires_capability(0x7ff376b83a98), requires_capability(0x7ff37ded1688), requires_capability(0x7ff36c6168a8), requires_capability(0x7ff37c49a708), requires_capability(0x7ff39283d108)]]
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.