Skip to content

Commit

Permalink
fixed bug define client
Browse files Browse the repository at this point in the history
  • Loading branch information
zargarzadehm committed Mar 13, 2021
1 parent 7ca36f5 commit 0704923
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 0704923

Please sign in to comment.