Expand description
Utility functions and types for Epoch Accounts Hash
Structs§
- Calculation
Info - 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?