btck_chain_contains

Return true if the passed in chain contains the block tree entry.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[__nonnull__]]
int
btck_chain_contains(
    btck_Chain const* chain,
    btck_BlockTreeEntry const* block_tree_entry);

Return Value

1 if the block_tree_entry is in the chain, 0 otherwise.

Parameters

NameDescription
chain [in]Non-null.
block_tree_entry [in]Non-null.