public ApiData(AlgorithmType algorithmID, AlgorithmType secondaryAlgorithmID = AlgorithmType.NONE) { AlgorithmID = algorithmID; SecondaryAlgorithmID = secondaryAlgorithmID; AlgorithmName = AlgorithmNiceHashNames.GetName(DualAlgorithmID()); Speed = 0.0; SecondarySpeed = 0.0; }
public APIData(AlgorithmType algorithmID, AlgorithmType secondaryAlgorithmID = AlgorithmType.NONE) { this.AlgorithmID = algorithmID; this.SecondaryAlgorithmID = secondaryAlgorithmID; this.AlgorithmName = AlgorithmNiceHashNames.GetName(DualAlgorithmID()); this.Speed = 0.0; this.SecondarySpeed = 0.0; }
public ApiData(AlgorithmType algorithmID, AlgorithmType secondaryAlgorithmID = AlgorithmType.NONE) { AlgorithmID = algorithmID; SecondaryAlgorithmID = secondaryAlgorithmID; AlgorithmName = AlgorithmNiceHashNames.GetName(Helpers.DualAlgoFromAlgos(algorithmID, secondaryAlgorithmID)); Speed = 0.0; SecondarySpeed = 0.0; PowerUsage = 0.0; }
public Algorithm(AlgorithmType niceHashID, string minerName) { NiceHashID = niceHashID; NiceHashName = AlgorithmNiceHashNames.GetName(niceHashID); MinerName = minerName; BenchmarkSpeed = 0.0d; ExtraLaunchParameters = ""; LessThreads = 0; Skip = false; BenchmarkStatus = ""; }
public Algorithm(MinerBaseType minerBaseType, AlgorithmType niceHashID, string minerName) { this.AlgorithmName = AlgorithmNiceHashNames.GetName(niceHashID); this.MinerBaseTypeName = Enum.GetName(typeof(MinerBaseType), minerBaseType); this.AlgorithmStringID = this.MinerBaseTypeName + "_" + this.AlgorithmName; MinerBaseType = minerBaseType; NiceHashID = niceHashID; MinerName = minerName; BenchmarkSpeed = 0.0d; ExtraLaunchParameters = ""; LessThreads = 0; Enabled = true; BenchmarkStatus = ""; }
private static string GetAlgorithmUrlName(AlgorithmType algorithmType) { if (algorithmType < 0) { return(""); } var name = AlgorithmNiceHashNames.GetName(algorithmType); if (name == AlgorithmNiceHashNames.NOT_FOUND) { return(""); } // strip out the _UNUSED name = name.Replace("_UNUSED", ""); return(name.ToLower()); }
public Algorithm(MinerBaseType minerBaseType, AlgorithmType niceHashID, string minerName, AlgorithmType secondaryNiceHashID = AlgorithmType.NONE) { NiceHashID = niceHashID; SecondaryNiceHashID = secondaryNiceHashID; this.AlgorithmName = AlgorithmNiceHashNames.GetName(DualNiceHashID()); this.MinerBaseTypeName = Enum.GetName(typeof(MinerBaseType), minerBaseType); this.AlgorithmStringID = this.MinerBaseTypeName + "_" + this.AlgorithmName; MinerBaseType = minerBaseType; MinerName = minerName; BenchmarkSpeed = 0.0d; SecondaryBenchmarkSpeed = 0.0d; ExtraLaunchParameters = ""; LessThreads = 0; Enabled = !(NiceHashID == AlgorithmType.Nist5); BenchmarkStatus = ""; }
public APIData(AlgorithmType algorithmID) { this.AlgorithmID = algorithmID; this.AlgorithmName = AlgorithmNiceHashNames.GetName(algorithmID); this.Speed = 0.0; }
public string GetName() { return(AlgorithmNiceHashNames.GetName(this.NiceHashID)); }