Skip to content

Commit 518cf9b

Browse files
authored
Merge pull request #55 from BitPoolMining/Dev
Release 1.0.1.25 Added CryptoDredge for VTC
2 parents 03b07f8 + 5da562f commit 518cf9b

File tree

180 files changed

+9591
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+9591
-11
lines changed

BitPoolMiner/BitPoolMiner.csproj

Lines changed: 187 additions & 3 deletions
Large diffs are not rendered by default.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
/* multi-line comment */
3+
// single-line comment
4+
// Uncomment and modify options
5+
"algo": "Lyra2REv3",
6+
"url": "stratum+tcp://us-east.vtc.bitpoolmining.com:3096",
7+
"user": "SanvdXYXUHi2RR58K6fVxiptcnyA4X2Yoo.BPM",
8+
"pass": "x"
9+
// Add comma to the end of the previous line
10+
/* "intensity": 6,
11+
"device": "0",
12+
"log": "log.txt",
13+
"no-color": false,
14+
"no-watchdog": false,
15+
"retries": 0,
16+
"retry-pause": 15,
17+
"timeout": 30,
18+
"cpu-priority": 3,
19+
"api-type": "ccminer-tcp",
20+
"api-bind": "127.0.0.1:4068",
21+
"pools": [
22+
{
23+
"algo": "x22i",
24+
"url": "stratum+tcp://us-east.suqa.bitpoolmining.com:3172",
25+
"user": "SanvdXYXUHi2RR58K6fVxiptcnyA4X2Yoo.BPM",
26+
"pass": "x"
27+
},
28+
{
29+
"algo": "x16r",
30+
"url": "stratum+tcp://us-east.rvn.bitpoolmining.com:4200",
31+
"user": "RQAJU3nWpA3tE2uomV54UnkDhvXQrME3LK.BPM",
32+
"pass": "x"
33+
}
34+
]
35+
*/
36+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
2+
# Global settings:
3+
#
4+
# TerminalColors
5+
# Enable colors for logging. Windows Command Prompt is not supported.
6+
# Default: false
7+
#
8+
# ExtraNonce
9+
# Enable extranonce subscription.
10+
# Default: true
11+
#
12+
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
13+
14+
<Global TerminalColors = "false"
15+
ExtraNonce = "true">
16+
17+
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
18+
# Pool connection setup:
19+
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
20+
21+
<Connection Url = "STRATUM"
22+
Username = "user"
23+
Password = "x">
24+
25+
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
26+
# Device config:
27+
#
28+
# Available platforms:
29+
#
30+
# 1. Platform name: Intel(R) Corporation
31+
# Index: 0
32+
# 2. Platform name: NVIDIA Corporation
33+
# Index: 1
34+
# 3. Platform name: Advanced Micro Devices, Inc.
35+
# Index: 2
36+
#
37+
# Available devices:
38+
#
39+
# DeviceIndex: 0
40+
# Name: Ellesmere
41+
# Board name: Radeon RX 580 Series
42+
# PCIe bus id: 10
43+
# Platform index: 2
44+
#
45+
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
46+
47+
<Device0 DeviceIndex = "0" BinaryFormat = "amdcl2" AsmProgram = "gfx8" WorkSize = "1048576">
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Global TerminalColors = "false"
2+
ExtraNonce = "true">
3+
<Connection Url = "stratum+tcp://us-east.vtc.bitpoolmining.com:3096"
4+
Username = "user"
5+
Password = "xxxxuserxxxx">
6+
<Device0 DeviceIndex = "0" BinaryFormat = "amdcl2" AsmProgram = "gfx8" WorkSize = "1048576">
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Global TerminalColors = "false"
22
ExtraNonce = "true">
33
<Connection Url = "stratum+tcp://us-east.vtc.bitpoolmining.com:3096"
4-
Username = "user"
4+
Username = "xxxxuserxxxx"
55
Password = "x">
66
<Device0 DeviceIndex = "0" BinaryFormat = "amdcl2" AsmProgram = "gfx8" WorkSize = "1048576">

BitPoolMiner/Miners/LyclMiner.cs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,33 @@ private void SetupLyclConfigName()
6565
MinerConfigArguments = MinerConfigFileName; // no switches, just the config file name for now
6666
}
6767

68+
private void CopyLcylConfigFile()
69+
{
70+
string defaultConfig = string.Format("{0}/{1}", MinerWorkingDirectory, "lyclMiner_default.conf");
71+
string currentConfig = string.Format("{0}/{1}", MinerWorkingDirectory, MinerConfigFileName);
72+
73+
if (File.Exists(currentConfig))
74+
{
75+
File.Delete(currentConfig);
76+
}
77+
78+
File.Copy(defaultConfig, currentConfig);
79+
80+
// Replace address with correct address
81+
string text = File.ReadAllText(currentConfig);
82+
text = text.Replace("xxxxuserxxxx", "new value");
83+
File.WriteAllText(currentConfig, text);
84+
}
85+
86+
87+
6888
/// <summary>
6989
/// Generates the new LyclConfig file
7090
/// </summary>
7191
private void GenerateLyclConfig()
7292
{
7393
SetupLyclConfigName();
74-
94+
CopyLcylConfigFile();
7595
}
7696
#endregion
7797

BitPoolMiner/Miners/Miner.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public abstract class Miner
1919
private const int MinerRestartDelay = 2000; // 2 second delay
2020

2121
protected BPMProcess MinerProcess;
22-
22+
public string Address { get; private set; }
2323
public string MinerName { get; private set; }
2424
public string MinerWorkingDirectory { get; protected set; }
2525
public string MinerArguments { get; set; }
@@ -102,6 +102,10 @@ private void FormatPerMinerCoinCombo()
102102
{
103103
MinerArguments = MinerArguments + " -c configSUQA.json";
104104
}
105+
else if (MinerBaseType == MinerBaseType.CryptoDredge && CoinType == CoinType.VTC)
106+
{
107+
MinerArguments = MinerArguments + " -c configVTC.json";
108+
}
105109
else if (MinerBaseType == MinerBaseType.CCMiner && CoinType == CoinType.VTC)
106110
{
107111
MinerArguments = MinerArguments.Replace("lyra2v2", "lyra2v3");

BitPoolMiner/Models/GPUSettings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ private List<MinerBaseType> SetMinerBaseType()
176176
break;
177177
case CoinType.VTC:
178178
minerBaseTypeList.Add(MinerBaseType.CCMiner);
179+
minerBaseTypeList.Add(MinerBaseType.CryptoDredge);
179180
minerBaseTypeList.Add(MinerBaseType.LyclMiner);
180181
break;
181182
case CoinType.RVN:
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
3+
<assemblyIdentity name="BitPoolMiner.application" version="1.0.1.25" publicKeyToken="4eb951c39ace8231" language="neutral" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" />
4+
<description asmv2:publisher="BitPoolMining" co.v1:suiteName="BitPoolMining" asmv2:product="BitPoolMiner" xmlns="urn:schemas-microsoft-com:asm.v1" />
5+
<deployment install="true" mapFileExtensions="true" co.v1:createDesktopShortcut="true">
6+
<subscription>
7+
<update>
8+
<expiration maximumAge="0" unit="days" />
9+
</update>
10+
</subscription>
11+
<deploymentProvider codebase="https://raw.githubusercontent.com/BitPoolMining/BitPoolMiner/master/BitPoolMiner/publish/BitPoolMiner.application" />
12+
</deployment>
13+
<compatibleFrameworks xmlns="urn:schemas-microsoft-com:clickonce.v2">
14+
<framework targetVersion="4.6.1" profile="Full" supportedRuntime="4.0.30319" />
15+
</compatibleFrameworks>
16+
<dependency>
17+
<dependentAssembly dependencyType="install" codebase="Application Files\BitPoolMiner_1_0_1_25\BitPoolMiner.exe.manifest" size="79795">
18+
<assemblyIdentity name="BitPoolMiner.exe" version="1.0.1.25" publicKeyToken="4eb951c39ace8231" language="neutral" processorArchitecture="msil" type="win32" />
19+
<hash>
20+
<dsig:Transforms>
21+
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
22+
</dsig:Transforms>
23+
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
24+
<dsig:DigestValue>k/6GB4hB/12kDZDxbl5YJmxQZrZiW7qxq1DdAhsvMpg=</dsig:DigestValue>
25+
</hash>
26+
</dependentAssembly>
27+
</dependency>
28+
<publisherIdentity name="CN=DSTURT-SURFACE\dstur" issuerKeyHash="e52c1a52fe2c96e0cea6ee90dfad5b3aa9285afb" /><Signature Id="StrongNameSignature" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha256" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /><DigestValue>0Tb5ii3x59q/itpfXXv2dpavBUds42hmGvQOjULQ7Yc=</DigestValue></Reference></SignedInfo><SignatureValue>GODddlDkgiMljxEGFiLovSyEaSMlHdrq4jlC4P5NMX6vB6E6gFtq5qBgQZgMshjwsF1abxXuDoAPjKWMNHnnTSKI9WkirMux/dVi66C9LejyG0zMtkmC+BodJJsNKegINdceQGtwVRQAAjgiy6JSweEA1UrH2025FQEUiAoTEoo=</SignatureValue><KeyInfo Id="StrongNameKeyInfo"><KeyValue><RSAKeyValue><Modulus>0N2j1jELxr2whZRV1BDtcUDcOARPClY+n8mSKqddyC4INatOTDnSL0lDCDAm1vI1LGLwogYDoKtIVAOtRtFzUPmLsJ2vHFwjOsb1TgXQuvZFJNmchbI9QaO3M4+efATGygi4DWpgtWSwmyarNHPSx2Od+W0Xx/HKCAJfjkijZaU=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue></KeyValue><msrel:RelData xmlns:msrel="http://schemas.microsoft.com/windows/rel/2005/reldata"><r:license xmlns:r="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:as="http://schemas.microsoft.com/windows/pki/2005/Authenticode"><r:grant><as:ManifestInformation Hash="87edd0428d0ef41a6668e36c4705af9676f67b5d5fda8abfdae7f12d8af936d1" Description="" Url=""><as:assemblyIdentity name="BitPoolMiner.application" version="1.0.1.25" publicKeyToken="4eb951c39ace8231" language="neutral" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" /></as:ManifestInformation><as:SignedBy /><as:AuthenticodePublisher><as:X509SubjectName>CN=DSTURT-SURFACE\dstur</as:X509SubjectName></as:AuthenticodePublisher></r:grant><r:issuer><Signature Id="AuthenticodeSignature" xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha256" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /><DigestValue>VSskCG5LPcEkNaTnOh5anW5GmXvPc9ltdUf+WP+yjrE=</DigestValue></Reference></SignedInfo><SignatureValue>V6ixFQSE6uMeRjlAUwLPFsasgRL9GDEoZ2nrFI3GP2kmKhXBIH4HFwFwffNyJys2xWJxXgQjfG7A5pumXyN5EAPpM+STv8yBK/qxKs3n8nVhWG+QWPOa1+Clrug/9W8lTXYndwnqXqRaKhEWsvkH8T9AP67OkDRADsQvVLsK2+Q=</SignatureValue><KeyInfo><KeyValue><RSAKeyValue><Modulus>0N2j1jELxr2whZRV1BDtcUDcOARPClY+n8mSKqddyC4INatOTDnSL0lDCDAm1vI1LGLwogYDoKtIVAOtRtFzUPmLsJ2vHFwjOsb1TgXQuvZFJNmchbI9QaO3M4+efATGygi4DWpgtWSwmyarNHPSx2Od+W0Xx/HKCAJfjkijZaU=</Modulus><Exponent>AQAB</Exponent></RSAKeyValue></KeyValue><X509Data><X509Certificate>MIIB6TCCAVKgAwIBAgIQMSF8bfMsQJFJBvCnjsSRajANBgkqhkiG9w0BAQsFADAzMTEwLwYDVQQDHigARABTAFQAVQBSAFQALQBTAFUAUgBGAEEAQwBFAFwAZABzAHQAdQByMB4XDTE4MDYxNDE5NDgyNloXDTE5MDYxNTAxNDgyNlowMzExMC8GA1UEAx4oAEQAUwBUAFUAUgBUAC0AUwBVAFIARgBBAEMARQBcAGQAcwB0AHUAcjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA0N2j1jELxr2whZRV1BDtcUDcOARPClY+n8mSKqddyC4INatOTDnSL0lDCDAm1vI1LGLwogYDoKtIVAOtRtFzUPmLsJ2vHFwjOsb1TgXQuvZFJNmchbI9QaO3M4+efATGygi4DWpgtWSwmyarNHPSx2Od+W0Xx/HKCAJfjkijZaUCAwEAATANBgkqhkiG9w0BAQsFAAOBgQAvVlpdo9XcpudUkYsVFltjDgxy7/PChctSOu63rXfeVIkXEt29ScfaWJxZM9iqREHxD3IafS910dObtPYIejHfqJvWazWey7SnnrJ1byJHMlb3AUan0xeZNMXl7rTn7LFmb76tcSiW4RO1bq2ii4e40sbkW4gjOiebmYIFs0pGrw==</X509Certificate></X509Data></KeyInfo></Signature></r:issuer></r:license></msrel:RelData></KeyInfo></Signature></asmv1:assembly>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
5+
</startup>
6+
</configuration>

0 commit comments

Comments
 (0)