Skip to content

Commit

Permalink
Merge pull request #19 from mhssamadani/develop
Browse files Browse the repository at this point in the history
fixed bug define client
  • Loading branch information
zargarzadehm committed Mar 14, 2021
2 parents 7ca36f5 + 0704923 commit 1b7d53d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,13 @@ const handle_submit_solution = (request, response) => {
request.on('end', function () {
data = JSON.parse(data);
var nonce = data.n;
var extraNonce2 = nonce.substr(job.extraNonce1.length)
Client.submit({
var extraNonce2 = nonce.substr(job.extraNonce1.length);
parameters.client.submit({
"worker_name": args.worker,
"job_id": job.jobId,
"nonce": nonce,
"extranonce2": extraNonce2
})
});
var res = JSON.stringify({
status: "OK",
});
Expand Down

0 comments on commit 1b7d53d

Please sign in to comment.