private string GetLocationURL(string miningLocation, NHMConectionType ConectionType) { string name = Globals.NiceHashData[AlgorithmType].name; int n_port = Globals.NiceHashData[AlgorithmType].port; int ssl_port = 30000 + n_port; // NHMConectionType.NONE string prefix = ""; int port = n_port; if (NHMConectionType.LOCKED == Miner.ConectionType) { return(miningLocation); } if (NHMConectionType.STRATUM_TCP == Miner.ConectionType) { prefix = "stratum+tcp://"; } if (NHMConectionType.STRATUM_SSL == Miner.ConectionType) { prefix = "stratum+ssl://"; port = ssl_port; } return(prefix + name + "." + miningLocation + ".nicehash.com:" + port); }
public static string GetLocationURL(AlgorithmType AlgorithmType, string miningLocation, NHMConectionType ConectionType) { if (Globals.NiceHashData != null && Globals.NiceHashData.ContainsKey(AlgorithmType)) { string name = Globals.NiceHashData[AlgorithmType].name; int n_port = Globals.NiceHashData[AlgorithmType].port; int ssl_port = 30000 + n_port; // NHMConectionType.NONE string prefix = ""; int port = n_port; if (NHMConectionType.LOCKED == ConectionType) { return(miningLocation); } if (NHMConectionType.STRATUM_TCP == ConectionType) { prefix = "stratum+tcp://"; } if (NHMConectionType.STRATUM_SSL == ConectionType) { throw new NotImplementedException("zPool does not support stratum+ssl"); //prefix = "stratum+ssl://"; //port = ssl_port; } return(prefix + name + ".mine.zpool.ca:" //+ "." + miningLocation //+ ".nicehash.com:" + port); } return(""); }
/// <summary> /// The GetLocationURL /// </summary> /// <param name="AlgorithmType">The <see cref="AlgorithmType"/></param> /// <param name="miningLocation">The <see cref="string"/></param> /// <param name="ConectionType">The <see cref="NHMConectionType"/></param> /// <returns>The <see cref="string"/></returns> public static string GetLocationURL(AlgorithmType AlgorithmType, string miningLocation, NHMConectionType ConectionType) { if (Globals.CryptoMiner937Data != null && Globals.CryptoMiner937Data.ContainsKey(AlgorithmType)) { string name = Globals.CryptoMiner937Data[AlgorithmType].name; string url = Globals.CryptoMiner937Data[AlgorithmType].url; int n_port = Globals.CryptoMiner937Data[AlgorithmType].port; int ssl_port = 30000 + n_port; // NHMConectionType.NONE string prefix = ""; int port = n_port; if (NHMConectionType.LOCKED == ConectionType) { return(miningLocation); } if (NHMConectionType.STRATUM_TCP == ConectionType) { prefix = "stratum+tcp://"; } if (NHMConectionType.STRATUM_SSL == ConectionType) { throw new NotImplementedException("zPool does not support stratum+ssl"); //prefix = "stratum+ssl://"; //port = ssl_port; } return(prefix + url); } return(""); }
public static string GetLocationURL(AlgorithmType AlgorithmType, string miningLocation, NHMConectionType ConectionType) { if (Globals.NiceHashData != null && Globals.NiceHashData.ContainsKey(AlgorithmType)) { string name = Globals.NiceHashData[AlgorithmType].name; int n_port = Globals.NiceHashData[AlgorithmType].port; int ssl_port = 30000 + n_port; // NHMConectionType.NONE string prefix = ""; int port = n_port; if (NHMConectionType.LOCKED == ConectionType) { return(miningLocation); } if (NHMConectionType.STRATUM_TCP == ConectionType) { prefix = "stratum+tcp://"; } if (NHMConectionType.STRATUM_SSL == ConectionType) { prefix = "stratum+ssl://"; port = ssl_port; } return(prefix + name + "." + miningLocation + ".nicehash.com:" + port); } return(""); }