Skip to content
Permalink
Browse files

Release 4.5: Updating miners and fixes

Release 4.5: Updating miners and fixes
  • Loading branch information...
cryptoprofitswitcher committed Jul 19, 2018
2 parents 49bf08c + 648e7e1 commit 6b544ddadecaeab15912ca6c06bb33f976c2515b
BIN +128 KB (100%) CastXmr/cast_xmr-vega.exe
Binary file not shown.
@@ -72,6 +72,8 @@
"SRBMinerApiPort": 21555,
// Set the path to SRBMiner pool config file directly (can be null, if you use AUTO POOL CONFIGURATION)
"SRBMinerPoolsPath": null,
// Extra arguments that will be passed over to SRBMiner, can be a string or null
"SRBMinerExtraArguments": null,
// Set if you want to also start Xmr-Stak for CPU Mining
"SRBMinerUseXmrStakCPUMining": true

@@ -29,7 +29,7 @@
/* AUTO POOL CONFIGURATION - NEEDED FOR CASTXMR OR IF POOL CONFIG FILE IS NOT DIRECTLY SET */

"PoolAddress": "mining.bit.tube:15555",
"PoolWalletAddress": "bxdLhsWY56SNjVN2aQ5Yyb6hhCFfAQJVbYszWCUjeDTJMgHad8wZbNJBdrvujZzPvRY2X5AiWdTDCP626s4WbHcG1TYdEot9f.c39044bac5c8414ca5e3fdcd352a4f23fff7e13870bc471e80da84506fcb537d",
"PoolWalletAddress": "bxdBEj1k8m9LzLSou3uGEzd2vS6XD6BbkNPwvFnCA4S5h2EwSU1tT5oSxBczB5vyHfJJvCknPHx847tZNxYDwC1W1yrzkxLra",
"PoolPassword": "x",
"PoolUseTls": false,
"PoolTlsFingerprint": "",
@@ -45,9 +45,9 @@
// Port of the Xmr-Stak Json API, should match the port in the config file of Xmr-Stak.
"XmrStakApiPort": 4000,
// Path to Xmr-Stak cpu config file, can be null.
"CpuPath": "XmrStak/cpu_lite.txt",
"CpuPath": "XmrStak/cpu_heavy.txt",
// Path to Xmr-Stak amd gpu config file, can be null.
"AmdPath": "XmrStak/amd_lite.txt",
"AmdPath": "XmrStak/amd_heavy.txt",
// Path to Xmr-Stak nvidea gpu config file, can be null.
"NvidiaPath": null,
// Set the path to Xmr-Stak pool config file directly (can be null, if you use AUTO POOL CONFIGURATION)
@@ -72,6 +72,8 @@
"SRBMinerApiPort": 21555,
// Set the path to SRBMiner pool config file directly (can be null, if you use AUTO POOL CONFIGURATION)
"SRBMinerPoolsPath": null,
// Extra arguments that will be passed over to SRBMiner, can be a string or null
"SRBMinerExtraArguments": null,
// Set if you want to also start Xmr-Stak for CPU Mining
"SRBMinerUseXmrStakCPUMining": true

This file was deleted.

@@ -72,6 +72,8 @@
"SRBMinerApiPort": 21555,
// Set the path to SRBMiner pool config file directly (can be null, if you use AUTO POOL CONFIGURATION)
"SRBMinerPoolsPath": null,
// Extra arguments that will be passed over to SRBMiner, can be a string or null
"SRBMinerExtraArguments": null,
// Set if you want to also start Xmr-Stak for CPU Mining
"SRBMinerUseXmrStakCPUMining": true

@@ -67,11 +67,13 @@
// Path to SRBMiner executable
"SRBMinerPath": "SRBMiner/SRBMiner-CN.exe",
// Path to SRBMiner config file
"SRBMinerConfigPath": "SRBMiner/config_heavy.txt",
"SRBMinerConfigPath": "SRBMiner/config_haven.txt",
// Port of the SRBMiner REST API, should match the port in the config file of SRBMiner.
"SRBMinerApiPort": 21555,
// Set the path to SRBMiner pool config file directly (can be null, if you use AUTO POOL CONFIGURATION)
"SRBMinerPoolsPath": null,
// Extra arguments that will be passed over to SRBMiner, can be a string or null
"SRBMinerExtraArguments": null,
// Set if you want to also start Xmr-Stak for CPU Mining
"SRBMinerUseXmrStakCPUMining": true

@@ -72,6 +72,8 @@
"SRBMinerApiPort": 21555,
// Set the path to SRBMiner pool config file directly (can be null, if you use AUTO POOL CONFIGURATION)
"SRBMinerPoolsPath": null,
// Extra arguments that will be passed over to SRBMiner, can be a string or null
"SRBMinerExtraArguments": null,
// Set if you want to also start Xmr-Stak for CPU Mining
"SRBMinerUseXmrStakCPUMining": true

@@ -67,11 +67,13 @@
// Path to SRBMiner executable
"SRBMinerPath": "SRBMiner/SRBMiner-CN.exe",
// Path to SRBMiner config file
"SRBMinerConfigPath": "SRBMiner/config_v7.txt",
"SRBMinerConfigPath": "SRBMiner/config_fast.txt",
// Port of the SRBMiner REST API, should match the port in the config file of SRBMiner.
"SRBMinerApiPort": 21555,
// Set the path to SRBMiner pool config file directly (can be null, if you use AUTO POOL CONFIGURATION)
"SRBMinerPoolsPath": null,
// Extra arguments that will be passed over to SRBMiner, can be a string or null
"SRBMinerExtraArguments": null,
// Set if you want to also start Xmr-Stak for CPU Mining
"SRBMinerUseXmrStakCPUMining": true

@@ -72,6 +72,8 @@
"SRBMinerApiPort": 21555,
// Set the path to SRBMiner pool config file directly (can be null, if you use AUTO POOL CONFIGURATION)
"SRBMinerPoolsPath": null,
// Extra arguments that will be passed over to SRBMiner, can be a string or null
"SRBMinerExtraArguments": null,
// Set if you want to also start Xmr-Stak for CPU Mining
"SRBMinerUseXmrStakCPUMining": true

@@ -72,6 +72,8 @@
"SRBMinerApiPort": 21555,
// Set the path to SRBMiner pool config file directly (can be null, if you use AUTO POOL CONFIGURATION)
"SRBMinerPoolsPath": null,
// Extra arguments that will be passed over to SRBMiner, can be a string or null
"SRBMinerExtraArguments": null,
// Set if you want to also start Xmr-Stak for CPU Mining
"SRBMinerUseXmrStakCPUMining": true

@@ -67,11 +67,13 @@
// Path to SRBMiner executable
"SRBMinerPath": "SRBMiner/SRBMiner-CN.exe",
// Path to SRBMiner config file
"SRBMinerConfigPath": "SRBMiner/config_v7.txt",
"SRBMinerConfigPath": "SRBMiner/config_stellite.txt",
// Port of the SRBMiner REST API, should match the port in the config file of SRBMiner.
"SRBMinerApiPort": 21555,
// Set the path to SRBMiner pool config file directly (can be null, if you use AUTO POOL CONFIGURATION)
"SRBMinerPoolsPath": null,
// Extra arguments that will be passed over to SRBMiner, can be a string or null
"SRBMinerExtraArguments": null,
// Set if you want to also start Xmr-Stak for CPU Mining
"SRBMinerUseXmrStakCPUMining": true

@@ -6,8 +6,9 @@
<TrimUnusedDependencies>true</TrimUnusedDependencies>
<LinkDuringPublish>true</LinkDuringPublish>
<ShowLinkerSizeComparison>true</ShowLinkerSizeComparison>
<Version>4.0.0</Version>
<Version>4.5.0</Version>
<Configurations>Debug;Release;ReleaseLinux</Configurations>
<ApplicationIcon>icon.ico</ApplicationIcon>
</PropertyGroup>

<ItemGroup>
@@ -17,13 +18,31 @@
</ItemGroup>

<ItemGroup>
<None Update="Coins\Aeon.json">
<None Update="XmrStak\amd_heavy.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Coins\Bittube.json">
<None Update="XmrStak\amd_lite.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="XmrStak\amd_v7.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="XmrStak\config.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="XmrStak\cpu_heavy.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Coins\Electroneum.json">
<None Update="XmrStak\cpu_lite.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="XmrStak\cpu_v7.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Coins\Aeon.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Coins\Bittube.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Coins\Masari.json">
@@ -70,27 +89,6 @@
<None Update="CastXmr\switch-radeon-gpu.exe">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="XmrStak\amd_heavy.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="XmrStak\amd_lite.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="XmrStak\amd_v7.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="XmrStak\config.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="XmrStak\cpu_heavy.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="XmrStak\cpu_lite.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="XmrStak\cpu_v7.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="XmrStak\libeay32.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
@@ -114,6 +112,15 @@
</None>
<None Update="SRBMiner\config_v7.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="SRBMiner\config_haven.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="SRBMiner\config_fast.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="SRBMiner\config_stellite.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="SRBMiner\Devcon\devcon.exe">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
@@ -166,40 +166,26 @@ internal static string GetJsonFromUrl(string url, Settings settings, DirectoryIn
//Save to cache
if (settings.EnableCaching && !url.Contains("127.0.0.1"))
{
try
int tries = 0;
while(tries < 2)
{
var urlMapFile = cacheFolder.GetFiles("urlmap.json").FirstOrDefault();
if (urlMapFile == null)
tries++;
try
{
var serialized2 = JsonConvert.SerializeObject(new Dictionary<string, string>());
string hashedFilename = url.GetHashCode() + ".json";
string savePath = Path.Combine(cacheFolder.FullName, hashedFilename);
_lock.EnterWriteLock();
File.WriteAllText(ResolveToFullPath("Cache/urlmap.json", appRootFolder.FullName), serialized2);
File.WriteAllText(savePath, responseBody);
_lock.ExitWriteLock();
urlMapFile = cacheFolder.GetFiles("urlmap.json").FirstOrDefault();
}
_lock.EnterReadLock();
var urlMapJson = File.ReadAllText(urlMapFile.FullName);
_lock.ExitReadLock();
var urlMap = JsonConvert.DeserializeObject<Dictionary<string, string>>(urlMapJson);
if (urlMap.ContainsKey(url))
catch (Exception ex)
{
var cachedFilename = urlMap[url];
var cachedFile = cacheFolder.GetFiles(cachedFilename).FirstOrDefault();
cachedFile?.Delete();
Console.WriteLine("Couldn't save to cache: " + ex);
// Reset Cache
_lock.EnterWriteLock();
cacheFolder.Delete();
_lock.ExitWriteLock();
}
string saveFilename = Guid.NewGuid().ToString() + ".json";
string savePath = ResolveToFullPath($"Cache/{saveFilename}", appRootFolder.FullName);
File.WriteAllText(savePath, responseBody);
urlMap[url] = saveFilename;
string serialized = JsonConvert.SerializeObject(urlMap);
string urlMapPath = ResolveToFullPath("Cache/urlmap.json", appRootFolder.FullName);
_lock.EnterWriteLock();
File.WriteAllText(urlMapPath, serialized);
_lock.ExitWriteLock();
}
catch (Exception ex)
{
Console.WriteLine("Couldn't save to cache: " + ex);
}
}
return responseBody;
@@ -212,20 +198,11 @@ internal static string GetJsonFromUrl(string url, Settings settings, DirectoryIn
Console.WriteLine("Error message: " + ex.Message);

//Try to get from cache
var urlMapFile = cacheFolder.GetFiles("urlmap.json").FirstOrDefault();
if (urlMapFile != null)
{
var urlMapJson = File.ReadAllText(urlMapFile.FullName);
var urlMap = JsonConvert.DeserializeObject<Dictionary<string, string>>(urlMapJson);
if (urlMap.ContainsKey(url))
{
var cachedFilename = urlMap[url];
var cachedFile = cacheFolder.GetFiles(cachedFilename).First();
var cachedContent = File.ReadAllText(urlMapFile.FullName);
Console.WriteLine("Got data from cache.");
return cachedContent;
}
}
string hashedFilename = url.GetHashCode() + ".json";
var cachedFile = cacheFolder.GetFiles(hashedFilename).First();
var cachedContent = File.ReadAllText(cachedFile.FullName);
Console.WriteLine("Got data from cache.");
return cachedContent;
throw;
}
}
BIN +23.8 KB Images/icon.ico
Binary file not shown.
BIN +89.2 KB Images/icon.png
Binary file not shown.
BIN +75 KB Images/logo1.png
Binary file not shown.
BIN +77.8 KB Images/logo2.png
Binary file not shown.
@@ -34,6 +34,7 @@ public abstract class Mineable
public string SRBMinerPath { get; set; }
public string SRBMinerConfigPath { get; set; }
public string SRBMinerPoolsPath { get; set; }
public string SRBMinerExtraArguments { get; set; }
public int SRBMinerApiPort { get; set; }
public bool SRBMinerUseXmrStakCPUMining { get; set; }
public abstract string Id { get; }
@@ -64,7 +65,7 @@ public int GetExpectedHashrate(Settings settings)
{
return settings.CryptonightBittubeHashrate;
}
return settings.CryptonightLiteHashrate;
return settings.CryptonightHeavyHashrate;
case Algorithm.CryptonightLite:
return settings.CryptonightLiteHashrate;
default:

0 comments on commit 6b544dd

Please sign in to comment.
You can’t perform that action at this time.