Set 5 second share target for the proxies.

This commit is contained in:
Alexander Blair 2017-07-12 18:37:03 -07:00
parent a807706a0e
commit ec01e5e05a

View file

@ -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))));
newDiff = Math.floor(Math.floor(this.hashes / (Math.floor((Date.now() - this.connectTime) / 1000)))* 5);
} else {
newDiff = Math.floor(this.hashes / (Math.floor((Date.now() - this.connectTime) / 1000))) * global.config.pool.targetTime;
}