DaemonClient: fixed broken coin setting

This commit is contained in:
SChernykh 2022-03-05 09:56:30 +01:00
parent b5da73389f
commit b674fafa0f

View file

@ -239,6 +239,10 @@ void xmrig::DaemonClient::connect()
return connectError("Invalid algorithm."); return connectError("Invalid algorithm.");
} }
if (!m_pool.algorithm().isValid()) {
m_pool.setAlgo(m_coin.algorithm());
}
const xmrig::Algorithm algo = m_pool.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)) { if ((algo == Algorithm::ASTROBWT_DERO) || (algo == Algorithm::ASTROBWT_DERO_2) || (m_coin == Coin::DERO) || (m_coin == Coin::DERO_HE)) {
m_apiVersion = API_DERO; m_apiVersion = API_DERO;