From b674fafa0f0e90c35e17750d774d70ddd6484a31 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Sat, 5 Mar 2022 09:56:30 +0100 Subject: [PATCH] DaemonClient: fixed broken `coin` setting --- src/base/net/stratum/DaemonClient.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/base/net/stratum/DaemonClient.cpp b/src/base/net/stratum/DaemonClient.cpp index a4d2b5219..c6330a358 100644 --- a/src/base/net/stratum/DaemonClient.cpp +++ b/src/base/net/stratum/DaemonClient.cpp @@ -239,6 +239,10 @@ void xmrig::DaemonClient::connect() return connectError("Invalid algorithm."); } + if (!m_pool.algorithm().isValid()) { + m_pool.setAlgo(m_coin.algorithm()); + } + const xmrig::Algorithm algo = m_pool.algorithm(); if ((algo == Algorithm::ASTROBWT_DERO) || (algo == Algorithm::ASTROBWT_DERO_2) || (m_coin == Coin::DERO) || (m_coin == Coin::DERO_HE)) { m_apiVersion = API_DERO;