btck_chainstate_manager_get_best_entry

Get the btck_BlockTreeEntry whose associated btck_BlockHeader has the most known cumulative proof of work.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[__nonnull__]]
btck_BlockTreeEntry const*
btck_chainstate_manager_get_best_entry(btck_ChainstateManager const* chainstate_manager);

Return Value

The btck_BlockTreeEntry, or null if no block headers have been loaded.

Parameters

NameDescription
chainstate_manager [in]Non-null.