Skip to content

Commit 30afa82

Browse files
committed
Added support for RavenCoin
1 parent dda75e0 commit 30afa82

12 files changed

Lines changed: 87 additions & 6 deletions

File tree

BitPoolMiner/BitPoolMiner.csproj

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@
157157
<Compile Include="Formatter\WhatToMineDataFormatter.cs" />
158158
<Compile Include="Formatter\MinerMonitorStatsFormatter.cs" />
159159
<Compile Include="Miners\Ccminer.cs" />
160+
<Compile Include="Miners\CCMinerForkRaven.cs" />
160161
<Compile Include="Miners\CCMinerForkNanashi.cs" />
161162
<Compile Include="Miners\Claymore.cs" />
162163
<Compile Include="Miners\DSTM.cs" />
@@ -297,6 +298,15 @@
297298
<DependentUpon>Settings.settings</DependentUpon>
298299
<DesignTimeSharedInput>True</DesignTimeSharedInput>
299300
</Compile>
301+
<Content Include="MinerApps\ccminer-ravencoin-v2.6\ccminer.exe">
302+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
303+
</Content>
304+
<Content Include="MinerApps\ccminer-ravencoin-v2.6\Changelog.txt">
305+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
306+
</Content>
307+
<Content Include="MinerApps\ccminer-ravencoin-v2.6\color.txt">
308+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
309+
</Content>
300310
<Content Include="MinerApps\EWBF_NO_ASIC\cudart32_91.dll">
301311
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
302312
</Content>
@@ -315,7 +325,9 @@
315325
<Content Include="Resources\Images\eth.png">
316326
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
317327
</Content>
318-
<Resource Include="Resources\Images\rvn.png" />
328+
<Content Include="Resources\Images\rvn.png">
329+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
330+
</Content>
319331
<Content Include="Resources\Images\zcl.png">
320332
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
321333
</Content>
@@ -425,6 +437,9 @@
425437
<Content Include="MinerApps\Claymore\start_only_eth.bat">
426438
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
427439
</Content>
440+
<Content Include="MinerApps\ccminer-ravencoin-v2.6\ccminer.bat">
441+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
442+
</Content>
428443
<None Include="MinerApps\EWBF\miner.cfg">
429444
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
430445
</None>

BitPoolMiner/Enums/AlgorithmType.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ public enum AlgorithmType
55
UNDEFINED,
66
Equihash,
77
Lyra2REv2,
8-
EthHash
8+
EthHash,
9+
x16R
910
}
1011
}

BitPoolMiner/Enums/CoinType.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Collections.Generic;
2-
using System.ComponentModel;
32

43
namespace BitPoolMiner.Enums
54
{
@@ -19,7 +18,8 @@ public enum CoinType
1918
BTCP,
2019
BTG,
2120
ZEN,
22-
ZCL
21+
ZCL,
22+
RVN
2323
}
2424

2525
public static class CoinLogos
@@ -40,6 +40,7 @@ public static class CoinLogos
4040
{ CoinType.BTCP, @"Resources\\Images\\btcp.png" },
4141
{ CoinType.ZEN, @"Resources\\Images\\zencash.png" },
4242
{ CoinType.ZCL, @"Resources\\Images\\zcl.png" },
43+
{ CoinType.RVN, @"Resources\\Images\\rvn.png" },
4344
};
4445
}
4546

@@ -61,6 +62,7 @@ public static class CoinNames
6162
{ CoinType.BTCP, "BITCOIN PRIVATE" },
6263
{ CoinType.ZEN, "ZENCASH" },
6364
{ CoinType.ZCL, "ZCLASSIC" },
65+
{ CoinType.RVN, "RAVENCOIN" },
6466
};
6567
}
6668

@@ -82,6 +84,7 @@ public static class CoinWhatToMineIDDictionary
8284
{ CoinType.BTCP, 230 },
8385
{ CoinType.ZEN, 185 },
8486
{ CoinType.ZCL, 167 },
87+
{ CoinType.RVN, 234 },
8588
};
8689
}
8790

@@ -103,6 +106,7 @@ public static class CoinPaymentChartColor
103106
{ CoinType.BTCP, "#78fd9a" },
104107
{ CoinType.ZEN, "#68fee0" },
105108
{ CoinType.ZCL, "#a072fc" },
109+
{ CoinType.RVN, "#68fee0" },
106110
};
107111
}
108112
}

BitPoolMiner/Enums/MinerBaseType.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public enum MinerBaseType
99
Claymore,
1010
CCMinerNanashi,
1111
LyclMiner,
12-
EWBF_NO_ASIC
12+
EWBF_NO_ASIC,
13+
CCMinerRaven
1314
}
1415
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
v2.6
2+
Improvements to poolside hash rate stability (recommended to use lower than normal stratum difficulty)
3+
Difficulty recommendation:
4+
d=Hashrate/2
5+
d=Hashrate/3
6+
Improvements to all hash functions
7+
8+
v2.5
9+
Optimizations to all hash functions
10+
bmw, jh, blake, groestl, keccak, skein, luffa, cubehash, echo, shavite, simd, fugue, hamsi, shabal, whirlpool, sha
11+
12+
v2.2
13+
Kraww!
14+
Added estimate for RVN earned per day (displays every 5th share)
15+
Cleaned up console output
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ccminer -a x16r -o stratum+tcp://us-east.rvn.bitpoolmining.com:3172 -u RECsZxL52sdD13PJ6BesmSrH2rnPZJjRrj.BPMDEFAULT -p x
40.8 MB
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
To color your RVN/day line in the official Ravencoin colors follow these steps
2+
3+
0. Make sure you are using the "Ravencoin Miner v2.5(COLOR).zip" version from https://github.com/Ravencoin-Miner/Ravencoin/releases
4+
1. Open miner as normal
5+
2. Right click the top of the cmd window and click defaults from the drop down menu.
6+
3. Select the "Colors" tab
7+
4. Select the "Screen Text" option (IMPORTANT) If you miss this you will likely recolor your background.
8+
5. From the left, black being "Color 1" select "Color 3", set its RGB value to Red = 247; Green = 148; Blue = 51.
9+
6. From the left, black being "Color 1" select "Color 5", set its RGB value to Red = 240; Green = 82; Blue = 57.
10+
7. From the left, black being "Color 1" select "Color 6", set its RGB value to Red = 56; Green = 65; Blue = 130.
11+
8. Finally select the defaultt grey color so your standard text will be grey. Its RGB value is 192,192,192.
12+
9. Press ok, close the current miner and open it again. Enjoy your Official Ravencoin Colors :)
13+
14+
If your colors did not work correctly, please message @--Banshee#1413 on Discord and I would be happy to help you get it set up correctly.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System.IO;
2+
using BitPoolMiner.Enums;
3+
4+
namespace BitPoolMiner.Miners
5+
{
6+
/// <summary>
7+
/// This class is for ccminer RavenCoin fork derived class.
8+
/// </summary>
9+
public class CCMinerForkRaven : Ccminer
10+
{
11+
public CCMinerForkRaven(HardwareType hardwareType, MinerBaseType minerBaseType) : base(hardwareType, minerBaseType, false)
12+
{
13+
string versionedDirectory = "";
14+
MinerFileName = "ccminer.exe";
15+
versionedDirectory = "ccminer-ravencoin-v2.6";
16+
MinerWorkingDirectory = Path.Combine(Utils.Core.GetBaseMinersDir(), versionedDirectory);
17+
18+
ApiPort = 4093;
19+
HostName = "127.0.0.1";
20+
}
21+
22+
}
23+
}

BitPoolMiner/Miners/MinerFactory.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public static Miner CreateMiner(MinerBaseType minerBaseType, HardwareType hardwa
2323
case MinerBaseType.CCMinerNanashi:
2424
return new CCMinerForkNanashi(hardwareType, minerBaseType);
2525

26+
case MinerBaseType.CCMinerRaven:
27+
return new CCMinerForkRaven(hardwareType, minerBaseType);
28+
2629
case MinerBaseType.EWBF:
2730
return new EWBF(hardwareType, minerBaseType);
2831

0 commit comments

Comments
 (0)