zebra_state::service::read::find

Function next_median_time_past

source
pub fn next_median_time_past(
    non_finalized_state: &NonFinalizedState,
    db: &ZebraDb,
) -> Result<DateTime32, BoxError>
Expand description

Returns the median-time-past of the next block to be added to the best chain in non_finalized_state or db.

§Panics

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