Function kernel_get_previous_block_index

Source
pub unsafe extern "C" fn kernel_get_previous_block_index(
    block_index: *const kernel_BlockIndex,
) -> *mut kernel_BlockIndex
Expand description

@brief Returns the previous block index in the chain, or null if the current block index entry is the genesis block.

@param[in] block_index Non-null. @return The previous block index, or null on error or if the current block index is the genesis block.