CChain::FindFork

Find the last common block between this chain and a block index entry.

Synopsis

Declared in <chain.h>

CBlockIndex const*
FindFork(CBlockIndex const& index) const;

Return Value

The most recent block index entry common to both, or nullptr if none.

Parameters

NameDescription
indexThe block index entry to compare against this chain.