[#Chainstate-FindForkInGlobalIndex]
= xref:Chainstate.adoc[Chainstate]::FindForkInGlobalIndex
:relfileprefix: ../
:mrdocs:

Find the last common block of this chain and a locator&period;

== Synopsis

Declared in `&lt;validation&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1ba84ea8), requires&lowbar;capability(0x7f2e14564af8), requires&lowbar;capability(0x7f2e373bdca8), requires&lowbar;capability(0x7f2e36e348f8)&rsqb;&rsqb;
xref:CBlockIndex.adoc[CBlockIndex] const*
FindForkInGlobalIndex(xref:CBlockLocator.adoc[CBlockLocator] const& locator) const;
----

== Return Value

The most recent block index entry common to both chains&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *locator*
| Block locator describing the other chain&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
