Esempio n. 1
0
 public MiningDevice(ComputeDevice device)
 {
     Device = device;
     foreach (var algo in Device.AlgorithmSettings)
     {
         var isAlgoMiningCapable = GroupSetupUtils.IsAlgoMiningCapable(algo);
         if (isAlgoMiningCapable)
         {
             Algorithms.Add(algo);
         }
     }
 }
Esempio n. 2
0
        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
        }