Returns the previous block tree entry in the tree, or null if the current block tree entry is the genesis block.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[__nonnull__]]
btck_BlockTreeEntry const*
btck_block_tree_entry_get_previous(btck_BlockTreeEntry const* block_tree_entry);

Return Value

The previous block tree entry, or null on error or if the current block tree entry is the genesis block.

Parameters

Name

Description

block_tree_entry [in]

Non‐null.

Created with MrDocs