From 81b18c0741bd4902075cc5547cb6dea1c72456be Mon Sep 17 00:00:00 2001 From: XMRig Date: Thu, 2 Dec 2021 19:36:51 +0700 Subject: [PATCH] #2771 Fixed environment variables support in EthStratumClient. --- src/base/net/stratum/EthStratumClient.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/net/stratum/EthStratumClient.cpp b/src/base/net/stratum/EthStratumClient.cpp index 3ebce7086..fd877d720 100644 --- a/src/base/net/stratum/EthStratumClient.cpp +++ b/src/base/net/stratum/EthStratumClient.cpp @@ -73,7 +73,7 @@ int64_t xmrig::EthStratumClient::submit(const JobResult& result) auto& allocator = doc.GetAllocator(); Value params(kArrayType); - params.PushBack(m_pool.user().toJSON(), allocator); + params.PushBack(m_user.toJSON(), allocator); params.PushBack(result.jobId.toJSON(), allocator); # ifdef XMRIG_ALGO_GHOSTRIDER @@ -471,8 +471,8 @@ void xmrig::EthStratumClient::authorize() auto &allocator = doc.GetAllocator(); Value params(kArrayType); - params.PushBack(m_pool.user().toJSON(), allocator); - params.PushBack(m_pool.password().toJSON(), allocator); + params.PushBack(m_user.toJSON(), allocator); + params.PushBack(m_password.toJSON(), allocator); JsonRequest::create(doc, m_sequence, "mining.authorize", params);