Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolin1579 committed Jan 9, 2024
1 parent bbb52d1 commit 7266733
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/Miningcore/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
using Miningcore.Crypto.Hashing.Equihash;
using Miningcore.Crypto.Hashing.Ethash.Etchash;
using Miningcore.Crypto.Hashing.Ethash.Ethash;
using Miningcore.Crypto.Hashing.Ethash.Ethashb3;
using Miningcore.Crypto.Hashing.Ethash.Ubqhash;
using Miningcore.Crypto.Hashing.Progpow.Evrprogpow;
using Miningcore.Crypto.Hashing.Progpow.Firopow;
using Miningcore.Crypto.Hashing.Progpow.Kawpow;
using Miningcore.Extensions;
using Miningcore.Messaging;
using Miningcore.Mining;
Expand Down Expand Up @@ -784,9 +788,12 @@ private static async Task PreFlightChecks(IServiceProvider services)
EquihashSolver.messageBus = messageBus;
EquihashSolver.MaxThreads = clusterConfig.EquihashMaxThreads ?? 1;

// Configure Ethhash
// Configure Ethash
Miningcore.Crypto.Hashing.Ethash.Ethash.Cache.messageBus = messageBus;

// Configure EthashB3
Miningcore.Crypto.Hashing.Ethash.Ethashb3.Cache.messageBus = messageBus;

// Configure Etchash
Miningcore.Crypto.Hashing.Ethash.Etchash.Cache.messageBus = messageBus;

Expand All @@ -808,6 +815,16 @@ private static async Task PreFlightChecks(IServiceProvider services)

// Configure NexaPow
Crypto.Hashing.Algorithms.NexaPow.messageBus = messageBus;

// Configure Evrprogpow
Miningcore.Crypto.Hashing.Progpow.Evrprogpow.Cache.messageBus = messageBus;

// Configure FiroPow
Miningcore.Crypto.Hashing.Progpow.Firopow.Cache.messageBus = messageBus;

// Configure Kawpow
Miningcore.Crypto.Hashing.Progpow.Kawpow.Cache.messageBus = messageBus;

}

private static async Task ConfigurePostgresCompatibilityOptions(IServiceProvider services)
Expand Down

0 comments on commit 7266733

Please sign in to comment.