mirror of
https://github.com/xmrig/xmrig.git
synced 2026-01-23 14:52:52 -05:00
Restored algo field in login request.
This commit is contained in:
@@ -154,6 +154,21 @@ void xmrig::Network::onJobResult(const JobResult &result)
|
||||
}
|
||||
|
||||
|
||||
void xmrig::Network::onLogin(IStrategy *, IClient *, rapidjson::Document &doc, rapidjson::Value ¶ms)
|
||||
{
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user