Retrieve a block tree entry by its block hash.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[__nonnull__]]
btck_BlockTreeEntry const*
btck_chainstate_manager_get_block_tree_entry_by_hash(
    btck_ChainstateManager const* chainstate_manager,
    btck_BlockHash const* block_hash);

Return Value

The block tree entry of the block with the passed in hash, or null if the block hash is not found.

Parameters

Name

Description

chainstate_manager [in]

Non‐null.

block_hash [in]

Non‐null.

Created with MrDocs