From 0704923653a155d18eca842644f0141508c2e105 Mon Sep 17 00:00:00 2001 From: Moein zargarzadeh Date: Sat, 13 Mar 2021 17:25:34 +0330 Subject: [PATCH] fixed bug define client --- client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client.js b/client.js index 8f46467..5a9450e 100644 --- a/client.js +++ b/client.js @@ -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", });