Fix for automatic variant specified by pool/proxy.
This commit is contained in:
parent
f1a1e0814c
commit
3a7e8647bb
3 changed files with 23 additions and 4 deletions
|
@ -170,6 +170,16 @@ bool Job::setTarget(const char *target)
|
|||
}
|
||||
|
||||
|
||||
void Job::setAlgorithm(const char *algo)
|
||||
{
|
||||
m_algorithm.parseAlgorithm(algo);
|
||||
|
||||
if (m_algorithm.variant() == xmrig::VARIANT_AUTO) {
|
||||
m_algorithm.setVariant(variant());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool Job::fromHex(const char* in, unsigned int len, unsigned char* out)
|
||||
{
|
||||
bool error = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue