public static IsAlgoMiningCapable ( Algorithm algo ) : bool | ||
algo | Algorithm | |
Résultat | bool |
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); } } }
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); } } }
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); } } }
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; }