Look up a block index entry by hash.

Synopses

Declared in <node/blockstorage.h>

Look up a block index entry by hash.

[[requires_capability(0x7f2e1b0991a8), requires_capability(0x7f2e26d1a908), requires_capability(0x7f2e375e09e8), requires_capability(0x7f2e33367da8), requires_capability(0x7f2e3542ed98), requires_capability(0x7f2e28a738f8)]]
CBlockIndex*
LookupBlockIndex(uint256 const& hash);

Look up a block index entry by hash.

[[requires_capability(0x7f2e1b099248), requires_capability(0x7f2e26d1a9a8), requires_capability(0x7f2e375e0a88), requires_capability(0x7f2e33367e48), requires_capability(0x7f2e3542ee38), requires_capability(0x7f2e28a73998)]]
CBlockIndex const*
LookupBlockIndex(uint256 const& hash) const;

Return Value

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

Parameters

Name

Description

hash

The block hash to look up.

Created with MrDocs