Skip to content

Commit

Permalink
#2771 Fixed environment variables support in EthStratumClient.
Browse files Browse the repository at this point in the history
  • Loading branch information
xmrig committed Dec 2, 2021
1 parent 8e83f72 commit 81b18c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/base/net/stratum/EthStratumClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 81b18c0

Please sign in to comment.