GetBlok-io / miningcore

Miningcore is a high-performance Mining Pool Software for Linux and Windows maintained by GetBlok.io
https://www.getblok.io
MIT License
2 stars 1 forks source link

Fix NiceHash for ERGO #4

Open vinnielima opened 2 years ago

vinnielima commented 2 years ago

Incorporate fix by @belmix from repository https://github.com/coinfoundry/miningcore/pull/1000/commits/6b40dab30f26e5e9d963a673b35be9e8aac8e701

Changes needed:

src/Miningcore/Blockchain/Ergo/ErgoPool.cs

Remove line:

await connection.NotifyAsync(BitcoinStratumMethods.SetDifficulty, new object[] { 1 });

Add line:

await connection.NotifyAsync(BitcoinStratumMethods.SetDifficulty, new object[] { context.Difficulty * BitcoinConstants.Pow2x32 });