Function zebra_state::service::read::find::calculate_median_time_past
source ยท pub(crate) fn calculate_median_time_past(
relevant_chain: Vec<Arc<Block>>,
) -> DateTime32
Expand description
Returns the median-time-past for the provided relevant_chain
.
The relevant_chain
has blocks in reverse height order.
See next_median_time_past()
for details.