1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-10 09:02:45 -05:00

Job flow.

This commit is contained in:
XMRig
2017-06-10 13:32:27 +03:00
parent f9c244f0aa
commit bcef4b12ec
7 changed files with 45 additions and 8 deletions

View File

@@ -22,6 +22,9 @@
*/
#include <utility>
#include "Console.h"
#include "interfaces/IClientListener.h"
#include "net/Client.h"
@@ -168,7 +171,8 @@ bool Client::parseJob(const json_t *params, int *code)
return false;
}
m_job = job;
job.setPoolId(m_id);
m_job = std::move(job);
LOG_DEBUG("[%s:%u] job: \"%s\", diff: %lld", m_host, m_port, job.id(), job.diff());
return true;