Restored algo field in login request.

This commit is contained in:
XMRig 2019-07-18 22:35:15 +07:00
parent f590cf58fb
commit 0ab26a1619
14 changed files with 129 additions and 35 deletions

View file

@ -154,6 +154,21 @@ void xmrig::Network::onJobResult(const JobResult &result)
}
void xmrig::Network::onLogin(IStrategy *, IClient *, rapidjson::Document &doc, rapidjson::Value &params)
{
using namespace rapidjson;
auto &allocator = doc.GetAllocator();
Value algo(kArrayType);
for (const auto &a : m_controller->miner()->algorithms()) {
algo.PushBack(StringRef(a.shortName()), allocator);
}
params.AddMember("algo", algo, allocator);
}
void xmrig::Network::onPause(IStrategy *strategy)
{
if (m_donate && m_donate == strategy) {