func MinEmptyValidator(validators []Validator, validatorBalances []uint64, c *config.Config, currentSlot uint64) int {
	for i := range validators {
		if validatorBalances[i] == 0 && validators[i].LatestStatusChangeSlot+c.ZeroBalanceValidatorTTL <= currentSlot {
			return i
		}
	}
	return -1
}
// MinEmptyValidator finds the first validator slot that is empty.
MinEmptyValidator finds the first validator slot that is empty.
// MinEmptyValidator finds the first validator slot that is empty .
func MinEmptyValidator(validators []Validator, validatorBalances []uint64, c *config.Config, currentSlot uint64) int {
	for i := range validators {
		if validatorBalances[i] == 0 && validators[i].LatestStatusChangeSlot+c.ZeroBalanceValidatorTTL <= currentSlot {
			return i
		}
	}
	return -1
}
func MinEmptyValidator ( validators [ ] Validator , validatorBalances [ ] uint64 , c * config . Config , currentSlot uint64 ) int { for i := range validators { if validatorBalances [ i ] == 0 && validators [ i ] . LatestStatusChangeSlot + c . ZeroBalanceValidatorTTL <= currentSlot { return i } } return - 1 }
MinEmptyValidator finds the first validator slot that is empty.
MinEmptyValidator finds the first validator slot that is empty .