mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-22 19:49:36 +00:00
DaemonClient: fixed broken coin
setting
This commit is contained in:
parent
b5da73389f
commit
b674fafa0f
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue