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(0x7ff37af16a18), requires_capability(0x7ff376b839f8), requires_capability(0x7ff37ded15e8), requires_capability(0x7ff36c616808), requires_capability(0x7ff37c49a668), requires_capability(0x7ff39283d068)]]
CBlockIndex*
LookupBlockIndex(uint256 const& hash);
» more...

Look up a block index entry by hash.

[[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;
» more...

Return Value

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

Parameters

NameDescription
hashThe block hash to look up.