Пример #1
0
 public static string ParseForMiningPair(MiningPair miningPair, AlgorithmType algorithmType, DeviceType deviceType, bool showLog = true)
 {
     return(ParseForMiningPairs(
                new List <MiningPair>()
     {
         miningPair
     },
                algorithmType, deviceType,
                MinerPaths.GetOptimizedMinerPath(miningPair), showLog));
 }
Пример #2
0
 // TODO remove somehow
 /// <summary>
 /// GetOptimizedMinerPath returns optimized miner path based on algorithm type and device codename.
 /// Device codename is a quickfix for sgminer, other miners don't use it
 /// </summary>
 /// <param name="algorithmType">determines what miner path to return</param>
 /// <param name="devCodename">sgminer extra</param>
 /// <param name="isOptimized">sgminer extra</param>
 /// <returns></returns>
 protected string GetOptimizedMinerPath(AlgorithmType algorithmType, string devCodename = "", bool isOptimized = true)
 {
     return(MinerPaths.GetOptimizedMinerPath(algorithmType, DeviceType, DeviceGroupType, devCodename, isOptimized));
 }