From 72667330e97ce2e1504df9f93cba7c039df6f82d Mon Sep 17 00:00:00 2001 From: Decho Kocharin Date: Tue, 9 Jan 2024 12:16:38 +0700 Subject: [PATCH] Update Program.cs --- src/Miningcore/Program.cs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/Miningcore/Program.cs b/src/Miningcore/Program.cs index 4933405ca..cf555d4cf 100644 --- a/src/Miningcore/Program.cs +++ b/src/Miningcore/Program.cs @@ -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; @@ -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; @@ -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)