CChain::Next

Find the successor of a block in this chain, or nullptr if the given index is not found or is the tip.

Synopsis

Declared in <chain.h>

CBlockIndex*
Next(CBlockIndex const& index) const;

Return Value

The next block index entry, or nullptr if the entry is absent or is the tip.

Parameters

NameDescription
indexThe block index entry whose successor is wanted.