zebra_state::service::read::find

Function tip_with_value_balance

source
pub fn tip_with_value_balance<C>(
    chain: Option<C>,
    db: &ZebraDb,
) -> Result<Option<(Height, Hash, ValueBalance<NonNegative>)>, BoxError>
where C: AsRef<Chain>,
Expand description

Returns the tip of chain with its ValueBalance. If there is no chain, returns the tip of db.