solana_runtime::bank

Module epoch_accounts_hash_utils

source
Expand description

Utility functions and types for Epoch Accounts Hash

Structs§

Functions§

  • For the epoch that bank is in, get all the EAH calculation information
  • Get the number of slots from EAH calculation start to stop; known as the calculation interval
  • 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 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!
  • For the epoch that bank is in, get the slot that the EAH calculation starts
  • For the epoch that bank is in, get the slot that the EAH calculation stops
  • Is the EAH enabled this Epoch?
  • Is this bank in the calculation window?