From b41d278457d07cb6bdf2ecf44b8095634c0efc5c Mon Sep 17 00:00:00 2001 From: Bram <84628826+sys-256@users.noreply.github.com> Date: Thu, 8 Jul 2021 14:13:51 +0200 Subject: [PATCH] Update duino-js.js --- duino-js.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/duino-js.js b/duino-js.js index 7c7a142..3f3e400 100644 --- a/duino-js.js +++ b/duino-js.js @@ -28,6 +28,9 @@ function startMiner () threads = userThreads; } + //sets workerVer to 0 + let workerVer = 0; + //creates threads workers (so if threads is 1, it would make 1 worker, and if threads was 12, it would make 12 workers) for (let workersAmount = 0; workersAmount < threads; workersAmount++) { @@ -36,7 +39,8 @@ function startMiner () //passes the username and rigid to the worker worker.postMessage({ username: username, - rigid: rigid + rigid: rigid, + workerVer: workerVer }); } }