コード例 #1
0
        IReadOnlyList <Algorithm> GetSupportedAlgorithms(CUDADevice gpu)
        {
            var algorithms = PluginSupportedAlgorithms.GetSupportedAlgorithmsNVIDIA(PluginUUID).ToList();

            if (PluginSupportedAlgorithms.UnsafeLimits(PluginUUID))
            {
                return(algorithms);
            }
            var filteredAlgorithms = Filters.FilterInsufficientRamAlgorithmsList(gpu.GpuRam, algorithms);

            return(filteredAlgorithms);
        }
コード例 #2
0
        protected override string MiningCreateCommandLine()
        {
            // API port function might be blocking
            _apiPort = GetAvaliablePort();
            // instant non blocking
            var url  = StratumServiceHelpers.GetLocationUrl(_algorithmType, _miningLocation, NhmConectionType.STRATUM_TCP);
            var algo = PluginSupportedAlgorithms.AlgorithmName(_algorithmType);

            var commandLine = $"--algo {algo} --url {url} --user {_username} -b 127.0.0.1:{_apiPort} --device {_devices} --no-watchdog {_extraLaunchParameters}";

            return(commandLine);
        }
コード例 #3
0
 public CryptoDredgePlugin()
 {
     MinerOptionsPackage = PluginInternalSettings.MinerOptionsPackage;
     // https://github.com/technobyl/CryptoDredge/releases | https://cryptodredge.org/ | https://bitcointalk.org/index.php?topic=4807821.0
     MinersBinsUrlsSettings = new MinersBinsUrlsSettings
     {
         // TODO BinVersion github and bitcointalk missmatch
         BinVersion = "0.22.0",
         ExePath    = new List <string> {
             "CryptoDredge_0.22.0", "CryptoDredge.exe"
         },
         Urls = new List <string>
         {
             "https://github.com/technobyl/CryptoDredge/releases/download/v0.22.0/CryptoDredge_0.22.0_cuda_10.1_windows.zip", // original source
         }
     };
     PluginMetaInfo = new PluginMetaInfo
     {
         PluginDescription          = "Simple in use and highly optimized cryptocurrency mining software with stable power consumption.",
         SupportedDevicesAlgorithms = PluginSupportedAlgorithms.SupportedDevicesAlgorithmsDict()
     };
 }