node::BlockManager::LookupBlockIndex

Look up a block index entry by hash.

Synopses

Declared in <node/blockstorage.h>

Look up a block index entry by hash.

CBlockIndex*
LookupBlockIndex(uint256 const& hash);
» more...

Look up a block index entry by hash.

CBlockIndex const*
LookupBlockIndex(uint256 const& hash) const;
» more...

Return Value

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

Parameters

NameDescription
hashThe block hash to look up.