[#btck-BlockTreeEntry-GetAncestor]
= xref:btck.adoc[btck]::xref:btck/BlockTreeEntry.adoc[BlockTreeEntry]::GetAncestor
:relfileprefix: ../../
:mrdocs:

Returns the ancestor entry at a given height&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:btck/BlockTreeEntry.adoc[BlockTreeEntry]
GetAncestor(int32&lowbar;t height) const;
----

== Return Value

The ancestor entry at that height&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *height*
| The target ancestor height&period;
|===


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