u64 getLastSlotInEpoch(final u64 epoch) { return getFirstSlotInEpoch(epoch) + getSlotsInEpoch(epoch) - 1; }