IsAlgoMiningCapable() public static method

public static IsAlgoMiningCapable ( Algorithm algo ) : bool
algo Algorithm
return bool
コード例 #1
0
 public MiningDevice(ComputeDevice device)
 {
     Device = device;
     foreach (var algo in Device.AlgorithmSettings)
     {
         var isAlgoMiningCapable = GroupSetupUtils.IsAlgoMiningCapable(algo);
         if (isAlgoMiningCapable && algo is PluginAlgorithm)
         {
             Algorithms.Add(algo);
         }
     }
 }
コード例 #2
0
 public MiningDevice(ComputeDevice device)
 {
     Device = device;
     foreach (var algo in Device.GetAlgorithmSettings())
     {
         bool isAlgoMiningCapable = GroupSetupUtils.IsAlgoMiningCapable(algo);
         bool isValidMinerPath    = MinerPaths.IsValidMinerPath(algo.MinerBinaryPath);
         if (isAlgoMiningCapable && isValidMinerPath)
         {
             Algorithms.Add(algo);
         }
     }
 }
コード例 #3
0
 public MiningDevice(ComputeDevice device)
 {
     Device = device;
     foreach (var kvp in Device.AlgorithmSettings)
     {
         AlgorithmType key  = kvp.Key;
         Algorithm     algo = kvp.Value;
         bool          isAlgoMiningCapable = GroupSetupUtils.IsAlgoMiningCapable(algo);
         bool          isValidMinerPath    = GroupSetupUtils.IsValidMinerPath(device, algo);
         if (isAlgoMiningCapable && isValidMinerPath)
         {
             Algorithms[key] = new MiningAlgorithm(device, algo);
         }
     }
 }
コード例 #4
0
 public MiningDevice(ComputeDevice device)
 {
     Device = device;
     foreach (var algo in Device.GetAlgorithmSettings())
     {
         var isAlgoMiningCapable = GroupSetupUtils.IsAlgoMiningCapable(algo);
         var isValidMinerPath    = MinerPaths.IsValidMinerPath(algo.MinerBinaryPath);
         if (isAlgoMiningCapable && isValidMinerPath)
         {
             Algorithms.Add(algo);
         }
     }
     MostProfitableAlgorithmType = AlgorithmType.NONE;
     MostProfitableMinerBaseType = MinerBaseType.NONE;
 }