mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-12 05:44:52 +00:00
Force variant 1 if no algorithm specified.
This commit is contained in:
parent
c4a2dcc1fb
commit
298cf37121
1 changed files with 6 additions and 0 deletions
|
@ -221,6 +221,12 @@ void Pool::adjust(xmrig::Algo algorithm)
|
||||||
|
|
||||||
if (!m_algorithm.isValid()) {
|
if (!m_algorithm.isValid()) {
|
||||||
m_algorithm.setAlgo(algorithm);
|
m_algorithm.setAlgo(algorithm);
|
||||||
|
|
||||||
|
if (m_algorithm.variant() == xmrig::VARIANT_AUTO) {
|
||||||
|
if (algorithm == xmrig::CRYPTONIGHT) {
|
||||||
|
m_algorithm.setVariant(xmrig::VARIANT_1);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strstr(m_host.data(), ".nicehash.com")) {
|
if (strstr(m_host.data(), ".nicehash.com")) {
|
||||||
|
|
Loading…
Reference in a new issue