Chainstate::FindForkInGlobalIndex

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

Synopsis

Declared in <validation.h>

[[requires_capability(0x7f9513ab5238), requires_capability(0x7f9502c982a8), requires_capability(0x7f9525449fd8), requires_capability(0x7f95174002b8)]]
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.