mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-11-27 11:03:58 +01:00
Set 5 second share target for the proxies.
This commit is contained in:
+1
-1
@@ -396,7 +396,7 @@ function Miner(id, login, pass, ipAddress, startingDiff, messageSender, protoVer
|
|||||||
if (this.hashes > 0) {
|
if (this.hashes > 0) {
|
||||||
let newDiff = 0;
|
let newDiff = 0;
|
||||||
if (this.proxy) {
|
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 {
|
} else {
|
||||||
newDiff = Math.floor(this.hashes / (Math.floor((Date.now() - this.connectTime) / 1000))) * global.config.pool.targetTime;
|
newDiff = Math.floor(this.hashes / (Math.floor((Date.now() - this.connectTime) / 1000))) * global.config.pool.targetTime;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user