Return the ancestor of a btck_BlockTreeEntry at the given height.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[__nonnull__]]
btck_BlockTreeEntry const*
btck_block_tree_entry_get_ancestor(
    btck_BlockTreeEntry const* block_tree_entry,
    int32_t height);

Return Value

The ancestor at the given height.

Parameters

Name

Description

block_tree_entry [in]

Non‐null.

height [in]

The height of the requested ancestor.

Created with MrDocs