[#CChain-FindFork]
= xref:CChain.adoc[CChain]::FindFork
:relfileprefix: ../
:mrdocs:

Find the last common block between this chain and a block index entry&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CBlockIndex.adoc[CBlockIndex] const*
FindFork(xref:CBlockIndex.adoc[CBlockIndex] const& index) const;
----

== Return Value

The most recent block index entry common to both, or nullptr if none&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *index*
| The block index entry to compare against this chain&period;
|===


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