mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
NiceHash fixing at 90k diff.
This commit is contained in:
+5
-1
@@ -195,7 +195,7 @@ function Miner(id, login, pass, ipAddress, startingDiff, messageSender, protoVer
|
||||
let pass_split = pass.split(":");
|
||||
this.error = "";
|
||||
this.identifier = pass_split[0];
|
||||
if (agent.contains('MinerGate')){
|
||||
if (agent.includes('MinerGate')){
|
||||
this.identifier = "MinerGate";
|
||||
}
|
||||
this.paymentID = null;
|
||||
@@ -223,6 +223,10 @@ function Miner(id, login, pass, ipAddress, startingDiff, messageSender, protoVer
|
||||
this.fixed_diff = false;
|
||||
this.difficulty = startingDiff;
|
||||
this.connectTime = Date.now();
|
||||
if (agent.includes('NiceHash')){
|
||||
this.fixed_diff = true;
|
||||
this.difficulty = global.coinFuncs.niceHashDiff;
|
||||
}
|
||||
if (diffSplit.length === 2) {
|
||||
this.fixed_diff = true;
|
||||
this.difficulty = Number(diffSplit[1]);
|
||||
|
||||
Reference in New Issue
Block a user