Look up a block index entry by hash.

Synopses

Declared in <node/blockstorage.h>

Look up a block index entry by hash.

[[requires_capability(0x7fd7532b0638), requires_capability(0x7fd74e9c7588), requires_capability(0x7fd75a26b2d8), requires_capability(0x7fd74f16e758), requires_capability(0x7fd74a00ddf8), requires_capability(0x7fd753265708)]]
CBlockIndex*
LookupBlockIndex(uint256 const& hash);

Look up a block index entry by hash.

[[requires_capability(0x7fd7532b06d8), requires_capability(0x7fd74e9c7628), requires_capability(0x7fd75a26b378), requires_capability(0x7fd74f16e7f8), requires_capability(0x7fd74a00de98), requires_capability(0x7fd7532657a8)]]
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