Update to make it so proxies aim for 1 second share times, rather than 3.

master
Alexander Blair 7 years ago
parent 687decc04d
commit 3c3f347c88

@ -396,7 +396,7 @@ function Miner(id, login, pass, ipAddress, startingDiff, messageSender, protoVer
if (this.hashes > 0) {
let newDiff = 0;
if (this.proxy){
newDiff = Math.floor(Math.floor(this.hashes / (Math.floor((Date.now() - this.connectTime) / 1000))) * global.config.pool.targetTime/10);
newDiff = Math.floor(Math.floor(this.hashes / (Math.floor((Date.now() - this.connectTime) / 1000))));
} else {
newDiff = Math.floor(this.hashes / (Math.floor((Date.now() - this.connectTime) / 1000))) * global.config.pool.targetTime;
}

Loading…
Cancel
Save