solana_runtime::bank

Module epoch_accounts_hash_utils

Source
Expand description

Utility functions and types for Epoch Accounts Hash

Structs§

CalculationInfo
All the EAH calculation information for a specific epoch

Functions§

calculation_info
For the epoch that bank is in, get all the EAH calculation information
calculation_interval
Get the number of slots from EAH calculation start to stop; known as the calculation interval
calculation_offset_start
Calculation of the EAH occurs once per epoch. All nodes in the cluster must agree on which slot the EAH is based on. This slot will be at an offset into the epoch, and referred to as the “start” slot for the EAH calculation.
calculation_offset_stop
Calculation of the EAH occurs once per epoch. All nodes in the cluster must agree on which bank will hash the EAH into its Bank::hash. This slot will be at an offset into the epoch, and referred to as the “stop” slot for the EAH calculation. All nodes must complete the EAH calculation before this slot!
calculation_start
For the epoch that bank is in, get the slot that the EAH calculation starts
calculation_stop
For the epoch that bank is in, get the slot that the EAH calculation stops
is_enabled_this_epoch
Is the EAH enabled this Epoch?
is_in_calculation_window
Is this bank in the calculation window?