[#LastCommonAncestor]
= LastCommonAncestor
:mrdocs:

Find the forking point between two chain tips&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CBlockIndex.adoc[CBlockIndex] const*
LastCommonAncestor(
    xref:CBlockIndex.adoc[CBlockIndex] const* pa,
    xref:CBlockIndex.adoc[CBlockIndex] const* pb);
----

== Return Value

The most recent common ancestor of the two entries, or nullptr if none&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pa*
| The first block index entry&period;
| *pb*
| The second block index entry&period;
|===


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