Skip to content

Commit f3c2244

Browse files
committed
Added support for XMR CPU mining
1 parent 67ba77b commit f3c2244

File tree

325 files changed

+845
-9665
lines changed

Some content is hidden

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

325 files changed

+845
-9665
lines changed

BitPoolMiner/BitPoolMiner.csproj

Lines changed: 170 additions & 283 deletions
Large diffs are not rendered by default.

BitPoolMiner/Enums/AlgorithmType.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ public enum AlgorithmType
66
Equihash,
77
Lyra2REv2,
88
EthHash,
9-
x16R
9+
x16R,
10+
CryptoNightR
1011
}
1112
}

BitPoolMiner/Enums/CoinType.cs

Lines changed: 6 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,9 @@ public enum CoinType
99
{
1010
UNDEFINED,
1111
VTC,
12-
//MONA,
13-
//HUSH,
14-
//KMD,
15-
//EXP,
16-
//ETH,
1712
ETC,
18-
//BTCP,
19-
//BTG,
20-
//ZEN,
21-
//ZCL,
22-
RVN
23-
//SUQA,
13+
RVN,
14+
XMR
2415
}
2516

2617
public static class CoinLogos
@@ -30,19 +21,10 @@ public static class CoinLogos
3021
/// </summary>
3122
public static readonly Dictionary<CoinType, string> CoinLogoDictionary = new Dictionary<CoinType, string>
3223
{
33-
//{ CoinType.HUSH, @"Resources\\Images\\hush.png" },
34-
//{ CoinType.KMD, @"Resources\\Images\\kmd.png" },
3524
{ CoinType.VTC, @"Resources\\Images\\vtc.png" },
36-
//{ CoinType.MONA, @"Resources\\Images\\mona.png" },
37-
//{ CoinType.EXP, @"Resources\\Images\\exp.png" },
38-
//{ CoinType.ETH, @"Resources\\Images\\eth.png" },
3925
{ CoinType.ETC, @"Resources\\Images\\etc.png" },
40-
//{ CoinType.BTG, @"Resources\\Images\\btg.png" },
41-
//{ CoinType.BTCP, @"Resources\\Images\\btcp.png" },
42-
//{ CoinType.ZEN, @"Resources\\Images\\zencash.png" },
43-
//{ CoinType.ZCL, @"Resources\\Images\\zcl.png" },
4426
{ CoinType.RVN, @"Resources\\Images\\rvn.png" },
45-
//{ CoinType.SUQA, @"Resources\\Images\\suqa.png" },
27+
{ CoinType.XMR, @"Resources\\Images\\xmr.png" },
4628
};
4729
}
4830

@@ -53,19 +35,10 @@ public static class CoinNames
5335
/// </summary>
5436
public static readonly Dictionary<CoinType, string> CoinNameDictionary = new Dictionary<CoinType, string>
5537
{
56-
//{ CoinType.HUSH, "HUSH" },
57-
//{ CoinType.KMD, "KOMODO" },
5838
{ CoinType.VTC, "VERTCOIN" },
59-
//{ CoinType.MONA, "MONACOIN" },
60-
//{ CoinType.EXP, "EXPANSE" },
61-
//{ CoinType.ETH, "ETHEREUM" },
6239
{ CoinType.ETC, "ETHEREUM CLASSIC" },
63-
//{ CoinType.BTG, "BITCOIN GOLD" },
64-
//{ CoinType.BTCP, "BITCOIN PRIVATE" },
65-
//{ CoinType.ZEN, "ZENCASH" },
66-
//{ CoinType.ZCL, "ZCLASSIC" },
6740
{ CoinType.RVN, "RAVENCOIN" },
68-
//{ CoinType.SUQA, "SUQA" },
41+
{ CoinType.XMR, "MONERO" },
6942
};
7043
}
7144

@@ -76,19 +49,10 @@ public static class CoinWhatToMineIDDictionary
7649
/// </summary>
7750
public static readonly Dictionary<CoinType, int> CoinWhatToMineID = new Dictionary<CoinType, int>
7851
{
79-
//{ CoinType.HUSH, 168 },
80-
//{ CoinType.KMD, 174 },
8152
{ CoinType.VTC, 5 },
82-
//{ CoinType.MONA, 148 },
83-
//{ CoinType.EXP, 154 },
84-
//{ CoinType.ETH, 151 },
8553
{ CoinType.ETC, 162 },
86-
//{ CoinType.BTG, 214 },
87-
//{ CoinType.BTCP, 230 },
88-
//{ CoinType.ZEN, 185 },
89-
//{ CoinType.ZCL, 167 },
9054
{ CoinType.RVN, 234 },
91-
//{ CoinType.SUQA, 277 },
55+
{ CoinType.XMR, 101 },
9256
};
9357
}
9458

@@ -111,7 +75,7 @@ public static class CoinPaymentChartColor
11175
//{ CoinType.ZEN, "#68fee0" },
11276
//{ CoinType.ZCL, "#a072fc" },
11377
{ CoinType.RVN, "#68fee0" },
114-
//{ CoinType.SUQA, "#35bda8" },
78+
{ CoinType.XMR, "#35bda8" },
11579
};
11680
}
11781
}

BitPoolMiner/Enums/HardwareType.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ public enum HardwareType
44
{
55
UNDEFINED,
66
AMD,
7-
Nvidia
7+
Nvidia,
8+
CPU
89
}
910
}

BitPoolMiner/Enums/MinerBaseType.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ public enum MinerBaseType
88
LyclMiner,
99
TRex,
1010
WildRig,
11-
CryptoDredge
11+
CryptoDredge,
12+
XMRig,
13+
XMRigNvidia,
14+
XMRigAMD
1215
}
1316
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"algo": "cryptonight",
3+
"api": {
4+
"port": 0,
5+
"access-token": null,
6+
"id": null,
7+
"worker-id": null,
8+
"ipv6": false,
9+
"restricted": true
10+
},
11+
"asm": true,
12+
"autosave": true,
13+
"av": 0,
14+
"background": false,
15+
"colors": true,
16+
"cpu-affinity": null,
17+
"cpu-priority": null,
18+
"donate-level": 5,
19+
"huge-pages": true,
20+
"hw-aes": null,
21+
"log-file": null,
22+
"max-cpu-usage": 100,
23+
"pools": [
24+
{
25+
"url": "donate.v2.xmrig.com:3333",
26+
"user": "YOUR_WALLET_ADDRESS",
27+
"pass": "x",
28+
"rig-id": null,
29+
"nicehash": false,
30+
"keepalive": false,
31+
"variant": -1,
32+
"tls": false,
33+
"tls-fingerprint": null
34+
}
35+
],
36+
"print-time": 60,
37+
"retries": 5,
38+
"retry-pause": 5,
39+
"safe": false,
40+
"threads": null,
41+
"user-agent": null,
42+
"watch": true
43+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
xmrig.exe
3+
pause
2.12 MB
Binary file not shown.
4.85 MB
Binary file not shown.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"algo": "cryptonight",
3+
"api": {
4+
"port": 0,
5+
"access-token": null,
6+
"id": null,
7+
"worker-id": null,
8+
"ipv6": false,
9+
"restricted": true
10+
},
11+
"autosave": true,
12+
"background": false,
13+
"cache": true,
14+
"colors": true,
15+
"donate-level": 5,
16+
"log-file": null,
17+
"opencl-platform": "AMD",
18+
"pools": [
19+
{
20+
"url": "donate.v2.xmrig.com:3333",
21+
"user": "YOUR_WALLET_ADDRESS",
22+
"pass": "x",
23+
"rig-id": null,
24+
"nicehash": false,
25+
"keepalive": false,
26+
"variant": -1,
27+
"enabled": true,
28+
"tls": false,
29+
"tls-fingerprint": null
30+
}
31+
],
32+
"print-time": 60,
33+
"retries": 5,
34+
"retry-pause": 5,
35+
"threads": null,
36+
"user-agent": null,
37+
"syslog": false,
38+
"watch": true
39+
}

0 commit comments

Comments
 (0)