1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-12 09:42:50 -05:00

Rewrite automatic variant handling.

This commit is contained in:
XMRig
2018-09-03 15:39:55 +03:00
parent a27dfa8b70
commit bb3990a076
5 changed files with 41 additions and 28 deletions

View File

@@ -166,12 +166,9 @@ bool Network::isColors() const
void Network::setJob(Client *client, const Job &job, bool donate)
{
xmrig::Algorithm algorithm = job.algorithm();
algorithm.setVariant(job.variant());
LOG_INFO(isColors() ? MAGENTA_BOLD("new job") " from " WHITE_BOLD("%s:%d") " diff " WHITE_BOLD("%d") " algo " WHITE_BOLD("%s")
: "new job from %s:%d diff %d algo %s",
client->host(), client->port(), job.diff(), algorithm.shortName());
client->host(), client->port(), job.diff(), job.algorithm().shortName());
m_state.diff = job.diff();
Workers::setJob(job, donate);