mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-25 04:59:30 +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()) {
|
||||
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")) {
|
||||
|
|
Loading…
Reference in a new issue