Chainstate::FindForkInGlobalIndex

Find the last common block of this chain and a locator.

Synopsis

Declared in <validation.h>

[[requires_capability(0x7f2e1ba84ea8), requires_capability(0x7f2e14564af8), requires_capability(0x7f2e373bdca8), requires_capability(0x7f2e36e348f8)]]
CBlockIndex const*
FindForkInGlobalIndex(CBlockLocator const& locator) const;

Return Value

The most recent block index entry common to both chains.

Parameters

NameDescription
locatorBlock locator describing the other chain.