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 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 || (NiceHashID == AlgorithmType.NeoScrypt && minerBaseType == MinerBaseType.sgminer)); BenchmarkStatus = ""; }
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 || NiceHashID == AlgorithmType.Skein || NiceHashID == AlgorithmType.Blake2s || NiceHashID == AlgorithmType.Xevan || NiceHashID == AlgorithmType.Tribus || NiceHashID == AlgorithmType.Veltor || NiceHashID == AlgorithmType.Phi || NiceHashID == AlgorithmType.Hsr || NiceHashID == AlgorithmType.Bitcore) && minerBaseType == MinerBaseType.sgminer; Enabled = !(NiceHashID == AlgorithmType.CryptoNight) || (NiceHashID == AlgorithmType.Keccak) && minerBaseType == MinerBaseType.GatelessGate; //Enabled = !(NiceHashID == AlgorithmType.Lyra2REv2) && minerBaseType == MinerBaseType.mkxminer; BenchmarkStatus = ""; }