Ejemplo n.º 1
0
 public ZEnemyPlugin()
 {
     // set default internal settings
     MinerOptionsPackage    = PluginInternalSettings.MinerOptionsPackage;
     DefaultTimeout         = PluginInternalSettings.DefaultTimeout;
     GetApiMaxTimeoutConfig = PluginInternalSettings.GetApiMaxTimeoutConfig;
     // https://bitcointalk.org/index.php?topic=3378390.0
     MinersBinsUrlsSettings = new MinersBinsUrlsSettings
     {
         // github tag ver-2.3
         BinVersion = "2.3-win-cuda10.1", // fix version if wrong
         ExePath    = new List <string> {
             "z-enemy.exe"
         },
         Urls = new List <string>
         {
             "https://github.com/z-enemy/z-enemy/releases/download/ver-2.3/z-enemy-2.3-win-cuda10.1.zip" // original source
         }
     };
     PluginMetaInfo = new PluginMetaInfo
     {
         PluginDescription          = "Zealot/Enemy (z-enemy) NVIDIA GPU miner.",
         SupportedDevicesAlgorithms = PluginSupportedAlgorithms.SupportedDevicesAlgorithmsDict()
     };
 }
Ejemplo n.º 2
0
        IReadOnlyList <Algorithm> GetSupportedAlgorithms(CUDADevice gpu)
        {
            var algorithms = PluginSupportedAlgorithms.GetSupportedAlgorithmsNVIDIA(PluginUUID);

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

            return(filteredAlgorithms);
        }
Ejemplo n.º 3
0
 protected virtual string AlgorithmName(AlgorithmType algorithmType) => PluginSupportedAlgorithms.AlgorithmName(algorithmType);