Browse Source

miner_raw updated

pull/130/head
notgiven688 1 year ago
parent
commit
c3367385ed
3 changed files with 5 additions and 3 deletions
  1. +1
    -1
      SDK/miner_raw/miner/cn.js
  2. +2
    -2
      SDK/miner_raw/miner/miner.js
  3. +2
    -0
      SDK/miner_raw/miner/worker.js

+ 1
- 1
SDK/miner_raw/miner/cn.js
File diff suppressed because it is too large
View File


+ 2
- 2
SDK/miner_raw/miner/miner.js View File

@ -165,7 +165,7 @@ function startMiningWithId(loginid, numThreads = -1, userid = "") {
identifier: "handshake",
loginid: loginid,
userid: userid,
version: 7
version: 8
};
startBroadcast(() => { addWorkers(numThreads); reconnector(); });
@ -185,7 +185,7 @@ function startMining(pool, login, password = "", numThreads = -1, userid = "") {
login: login,
password: password,
userid: userid,
version: 7
version: 8
};
startBroadcast(() => { addWorkers(numThreads); reconnector(); });

+ 2
- 0
SDK/miner_raw/miner/worker.js View File

@ -56,6 +56,8 @@ onmessage = function (e) {
hash = cn(blob, 2, job.variant, job.height);
else if(job.algo === "cn-half")
hash = cn(blob, 3, job.variant, job.height);
else if(job.algo === "cn-rwz")
hash = cn(blob, 4, job.variant, job.height);
else throw "algorithm not supported!";
var hashval = hex2int(hash.substring(56, 64));

Loading…
Cancel
Save