Function kernel_block_index_get_tip

Source
pub unsafe extern "C" fn kernel_block_index_get_tip(
    context: *const kernel_Context,
    chainstate_manager: *mut kernel_ChainstateManager,
) -> *mut kernel_BlockIndex
Expand description

@brief Get the block index entry of the current chain tip. Once returned, there is no guarantee that it remains in the active chain.

@param[in] context Non-null. @param[in] chainstate_manager Non-null. @return The block index of the current tip, or null if the chain is empty.