Return the ancestor of a btck_BlockTreeEntry at the given height.
Declared in <kernel/bitcoinkernel.h>
[[__nonnull__]]
btck_BlockTreeEntry const*
btck_block_tree_entry_get_ancestor(
btck_BlockTreeEntry const* block_tree_entry,
int32_t height);
The ancestor at the given height.
| Name | Description |
|---|---|
| block_tree_entry [in] | Non-null. |
| height [in] | The height of the requested ancestor. |