Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Commit 1f3df14

Browse files
committed
fix(ravencoin): algo name
1 parent 724780b commit 1f3df14

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/Miningcore/Configuration/ClusterConfigExtensions.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using JetBrains.Annotations;
55
using Miningcore.Crypto;
66
using Miningcore.Crypto.Hashing.Algorithms;
7-
using Miningcore.Crypto.Hashing.Kawpow;
87
using NBitcoin;
98
using Newtonsoft.Json;
109

@@ -89,8 +88,17 @@ public partial class RavencoinTemplate
8988
{
9089
public RavencoinTemplate() : base()
9190
{
92-
KawpowHasher = new EthashLight();
91+
KawpowHasher = new Crypto.Hashing.Kawpow.EthashLight();
9392
}
93+
94+
#region Overrides of CoinTemplate
95+
96+
public override string GetAlgorithmName()
97+
{
98+
return KawpowHasher.AlgoName;
99+
}
100+
101+
#endregion
94102
}
95103

96104

src/Miningcore/Crypto/Hashing/Kawpow/EthashLight.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public void Setup(int numCaches)
1414
private readonly object cacheLock = new();
1515
private readonly Dictionary<int, Cache> caches = new();
1616
private Cache future;
17-
public string AlgoName { get; } = "Kawpow";
17+
public string AlgoName { get; } = "KawPow";
1818

1919
public void Dispose()
2020
{

0 commit comments

Comments
 (0)