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.

[[requires_capability(0x7fb95f04ce38), requires_capability(0x7fb969da6bf8), requires_capability(0x7fb96c563648), requires_capability(0x7fb9857a0708), requires_capability(0x7fb96cb96018), requires_capability(0x7fb95a5b9568)]]
CBlockIndex*
LookupBlockIndex(uint256 const& hash);
» more...

Look up a block index entry by hash.

[[requires_capability(0x7fb95f04ced8), requires_capability(0x7fb969da6c98), requires_capability(0x7fb96c5636e8), requires_capability(0x7fb9857a07a8), requires_capability(0x7fb96cb960b8), requires_capability(0x7fb95a5b9608)]]
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.