CChain::operator[]

Returns the index entry at a particular height in this chain, or nullptr if no such height exists.

Synopsis

Declared in <chain.h>

CBlockIndex*
operator[](int nHeight) const;

Return Value

The block index entry at the given height, or nullptr if out of range.

Parameters

NameDescription
nHeightThe height to look up.