getSlotsInEpoch method

u64 getSlotsInEpoch(
  1. u64 epoch
)

Implementation

u64 getSlotsInEpoch(final u64 epoch) {
  return epoch < firstNormalEpoch
      ? math.pow(2, epoch + _trailingZeros(minimumSlotPerEpoch)).toInt()
      : slotsPerEpoch;
}