Skip to content

Commit

Permalink
Merge branch 'master' into alpha3
Browse files Browse the repository at this point in the history
  • Loading branch information
S74nk0 committed Jan 27, 2020
2 parents dc7524b + bc06892 commit 410308b
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 21 deletions.
8 changes: 4 additions & 4 deletions src/Miners/GMiner/GMinerPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ public GMinerPlugin()
// https://bitcointalk.org/index.php?topic=5034735.0 | https://github.com/develsoftware/GMinerRelease/releases
MinersBinsUrlsSettings = new MinersBinsUrlsSettings
{
BinVersion = "1.95",
BinVersion = "1.96",
ExePath = new List<string> { "miner.exe" },
Urls = new List<string>
{
"https://github.com/develsoftware/GMinerRelease/releases/download/1.95/gminer_1_95_windows64.zip", // original
"https://github.com/develsoftware/GMinerRelease/releases/download/1.96/gminer_1_96_windows64.zip", // original
}
};
PluginMetaInfo = new PluginMetaInfo
Expand All @@ -41,7 +41,7 @@ public GMinerPlugin()

public override string PluginUUID => "1b7019d0-7237-11e9-b20c-f9f12eb6d835";

public override Version Version => new Version(6, 2);
public override Version Version => new Version(6, 3);

public override string Name => "GMinerCuda9.0+";

Expand Down Expand Up @@ -146,7 +146,7 @@ public override bool ShouldReBenchmarkAlgorithmOnDevice(BaseDevice device, Versi
{
try
{
if (benchmarkedPluginVersion.Major == 6 && benchmarkedPluginVersion.Minor < 2) {
if (benchmarkedPluginVersion.Major == 6 && benchmarkedPluginVersion.Minor < 3) {
return ids.FirstOrDefault() == AlgorithmType.Cuckaroom;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace LolMinerBeam
{
public partial class LolMinerBeamPlugin
{
const ulong AMD_8GBMemory = 8UL << 30; // 4GB
const ulong AMD_8GBMemory = 7UL << 30; // 7GB but really 8GB
internal static List<SAS> SupportedAMDAlgos()
{
return new List<SAS>
Expand All @@ -17,6 +17,7 @@ internal static List<SAS> SupportedAMDAlgos()
new SAS(AlgorithmType.GrinCuckatoo31),
new SAS(AlgorithmType.BeamV2),
new SAS(AlgorithmType.Cuckaroom) { NonDefaultRAMLimit = AMD_8GBMemory },
new SAS(AlgorithmType.GrinCuckatoo32),
};
}

Expand Down Expand Up @@ -52,6 +53,7 @@ internal static List<SAS> SupportedNVIDIAOpenCLAlgos(bool enabled = false)
{ AlgorithmType.GrinCuckatoo31, "GRIN-AT31" },
{ AlgorithmType.BeamV2, "BEAM-II" },
{ AlgorithmType.Cuckaroom, "FLOO-C29M" },
{ AlgorithmType.GrinCuckatoo32, "GRIN-C32" },
}
};
}
Expand Down
12 changes: 6 additions & 6 deletions src/Miners/LolMinerBeam/LolMinerBeamPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ public LolMinerBeamPlugin()
// https://github.com/Lolliedieb/lolMiner-releases/releases | https://bitcointalk.org/index.php?topic=4724735.0
MinersBinsUrlsSettings = new MinersBinsUrlsSettings
{
BinVersion = "0.9.5.1",
ExePath = new List<string> { "0.9.5.1", "lolMiner.exe" },
BinVersion = "0.9.6.1",
ExePath = new List<string> { "0.9.6.1", "lolMiner.exe" },
Urls = new List<string>
{
"https://github.com/Lolliedieb/lolMiner-releases/releases/download/0.95/lolMiner_v0951_Win64.zip" // original
"https://github.com/Lolliedieb/lolMiner-releases/releases/download/0.96/lolMiner_v0961_Win64.zip" // original
}
};
PluginMetaInfo = new PluginMetaInfo
Expand All @@ -37,7 +37,7 @@ public LolMinerBeamPlugin()
};
}

public override Version Version => new Version(6, 0);
public override Version Version => new Version(7, 0);

public override string Name => "lolMiner";

Expand Down Expand Up @@ -116,9 +116,9 @@ public override IEnumerable<string> CheckBinaryPackageMissingFiles()
public override bool ShouldReBenchmarkAlgorithmOnDevice(BaseDevice device, Version benchmarkedPluginVersion, params AlgorithmType[] ids)
{
if (ids.Count() == 0) return false;
if (benchmarkedPluginVersion.Major == 4 && benchmarkedPluginVersion.Minor < 1)
if (benchmarkedPluginVersion.Major <= 7)
{
if (device.DeviceType == DeviceType.AMD && ids.FirstOrDefault() == AlgorithmType.GrinCuckatoo31) return true;
if (device.DeviceType == DeviceType.AMD && ids.FirstOrDefault() == AlgorithmType.Cuckaroom) return true;
}
return false;
}
Expand Down
2 changes: 2 additions & 0 deletions src/Miners/MinerPluginToolkitV1/Filters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public static class Filters
public const ulong MinMTPMem = 5UL << 30; // 5GB
public const ulong MinGrinCuckarood29Memory = 6012951136; // 5.6GB
public const ulong MinGrinCuckaroomMemory = 6012951136; // 5.6GB // TODO check the RAM limits
public const ulong MinGrin32Mem = 7UL << 30; // 7.0GB (because system acn reserve GPU memory) really this is 8GB


private static readonly Dictionary<AlgorithmType, ulong> _minMemoryPerAlgo = new Dictionary<AlgorithmType, ulong>
Expand All @@ -40,6 +41,7 @@ public static class Filters
{ AlgorithmType.MTP, MinMTPMem },
{ AlgorithmType.GrinCuckarood29, MinGrinCuckarood29Memory },
{ AlgorithmType.Cuckaroom, MinGrinCuckaroomMemory },
{ AlgorithmType.GrinCuckatoo32, MinGrin32Mem },
};

public static List<AlgorithmType> InsufficientDeviceMemoryAlgorithnms(ulong Ram, IEnumerable<AlgorithmType> algos)
Expand Down
8 changes: 4 additions & 4 deletions src/Miners/NanoMiner/NanoMinerPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ public NanoMinerPlugin()
// https://bitcointalk.org/index.php?topic=5089248.0 | https://github.com/nanopool/nanominer/releases
MinersBinsUrlsSettings = new MinersBinsUrlsSettings
{
BinVersion = "v1.7.1",
ExePath = new List<string> { "nanominer-windows-1.7.1", "nanominer.exe" },
BinVersion = "v1.7.3",
ExePath = new List<string> { "nanominer-windows-1.7.3", "nanominer.exe" },
Urls = new List<string>
{
"https://github.com/nanopool/nanominer/releases/download/v1.7.1/nanominer-windows-1.7.1.zip", // original
"https://github.com/nanopool/nanominer/releases/download/v1.7.3/nanominer-windows-1.7.3.zip", // original
}
};
PluginMetaInfo = new PluginMetaInfo
Expand All @@ -39,7 +39,7 @@ public NanoMinerPlugin()

public override string PluginUUID => "a841b4b0-ae17-11e9-8e4e-bb1e2c6e76b4";

public override Version Version => new Version(5, 1);
public override Version Version => new Version(5, 2);

public override string Name => "NanoMiner";

Expand Down
1 change: 1 addition & 0 deletions src/NHM.Common/Enums/AlgorithmType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public enum AlgorithmType
Eaglesong = 48,
//[Obsolete("UNUSED Algorithm")]
Cuckaroom = 49,
GrinCuckatoo32 = 50,
#endregion // NiceHashAPI
}

Expand Down
6 changes: 3 additions & 3 deletions src/NHMCore/Mining/Plugins/PluginPackageInfoCR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ public bool CompatibleNHPluginVersion
{
var ver = OnlineInfo?.PluginVersion ?? null;
var isNHPlugin = "info@nicehash.com" == OnlineInfo?.PluginAuthor;
// 5 brings new interfaces + Eaglesong, 6 new algo Cuckaroom
// current supported major versions are 5-6 inclusive (older not supported)
// 5 brings new interfaces + Eaglesong, 6 new algo Cuckaroom, 7 new algo GrinCuckatoo32
// current supported major versions are 5-7 inclusive (older not supported)
if (isNHPlugin && ver != null) {
return ver.Major == 5 || ver.Major == 6;
return ver.Major == 5 || ver.Major == 6 || ver.Major == 7;
}
// here we assume it is compatible so allow install
return true;
Expand Down
4 changes: 2 additions & 2 deletions src/NiceHashMiner/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("3.0.0.1")]
[assembly: AssemblyFileVersion("3.0.0.1")]
[assembly: AssemblyVersion("3.0.0.2")]
[assembly: AssemblyFileVersion("3.0.0.2")]
2 changes: 1 addition & 1 deletion src/Tools/MinerPluginsPacker/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private static void CheckPluginMetaData(IMinerPlugin plugin)
}
}

private static int[] _supportedMajorverLinks = new int[] { 3, 4, 5, 6 };
private static int[] _supportedMajorverLinks = new int[] { 3, 4, 5, 6, 7 };
private static bool IsMajorVersionLinkSupported(int major)
{
return _supportedMajorverLinks.Contains(major);
Expand Down

0 comments on commit 410308b

Please sign in to comment.