public MiningDevice(ComputeDevice device) { Device = device; foreach (var algo in Device.AlgorithmSettings) { var isAlgoMiningCapable = GroupSetupUtils.IsAlgoMiningCapable(algo); if (isAlgoMiningCapable) { Algorithms.Add(algo); } } }
public MiningDevice(ComputeDevice device) { Device = device; #if FORCE_MINING foreach (var algo in Device.AlgorithmSettings) { if (algo.Enabled) { algo.BenchmarkSpeed = 1000; Algorithms.Add(algo); } } #else foreach (var algo in Device.AlgorithmSettings) { var isAlgoMiningCapable = GroupSetupUtils.IsAlgoMiningCapable(algo); if (isAlgoMiningCapable) { Algorithms.Add(algo); } } #endif }