[#btck_block_tree_entry_get_ancestor]
= btck&lowbar;block&lowbar;tree&lowbar;entry&lowbar;get&lowbar;ancestor
:mrdocs:

Return the ancestor of a btck&lowbar;BlockTreeEntry at the given height&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;&lowbar;&lowbar;nonnull&lowbar;&lowbar;&rsqb;&rsqb;
xref:btck_BlockTreeEntry-0c.adoc[btck&lowbar;BlockTreeEntry] const*
btck&lowbar;block&lowbar;tree&lowbar;entry&lowbar;get&lowbar;ancestor(
    xref:btck_BlockTreeEntry-0c.adoc[btck&lowbar;BlockTreeEntry] const* block&lowbar;tree&lowbar;entry,
    int32&lowbar;t height);
----

== Return Value

The ancestor at the given height&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block&lowbar;tree&lowbar;entry* [in]
| Non&hyphen;null&period;
| *height* [in]
| The height of the requested ancestor&period;
|===


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