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;