node::BlockManager::LookupBlockIndex

Look up a block index entry by hash.

Synopsis

Declared in <node/blockstorage.h>

[[requires_capability(0x7f95130c9298), requires_capability(0x7f950163c588), requires_capability(0x7f95241d9578), requires_capability(0x7f951f330878), requires_capability(0x7f950b9c2838), requires_capability(0x7f95175c4f88)]]
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.