zebra_state::service::read::difficulty

Function get_block_template_chain_info

source
pub fn get_block_template_chain_info(
    non_finalized_state: &NonFinalizedState,
    db: &ZebraDb,
    network: &Network,
) -> Result<GetBlockTemplateChainInfo, BoxError>
Expand description

Returns the GetBlockTemplateChainInfo for the current best chain.

§Panics

  • If we don’t have enough blocks in the state.