diff --git a/libs/paymentProcessor.js b/libs/paymentProcessor.js index 3471d198..b804411b 100644 --- a/libs/paymentProcessor.js +++ b/libs/paymentProcessor.js @@ -966,7 +966,7 @@ function SetupForPool(logger, poolOptions, setupFinished){ if (workerTimes[address] != null && parseFloat(workerTimes[address]) > 0) { var timePeriod = roundTo(parseFloat(workerTimes[address] || 1) / maxTime , 2); if (timePeriod > 0 && timePeriod < pplntTimeQualify) { - var lost = shares - (shares * timePeriod); + var lost = shares - (shares * timePeriod / pplntTimeQualify); sharesLost += lost; shares = Math.max(shares - lost, 0); } @@ -1018,7 +1018,7 @@ function SetupForPool(logger, poolOptions, setupFinished){ if (workerTimes[address] != null && parseFloat(workerTimes[address]) > 0) { var timePeriod = roundTo(parseFloat(workerTimes[address] || 1) / maxTime , 2); if (timePeriod > 0 && timePeriod < pplntTimeQualify) { - var lost = shares - (shares * timePeriod); + var lost = shares - (shares * timePeriod / pplntTimeQualify); sharesLost += lost; shares = Math.max(shares - lost, 0); logger.warning(logSystem, logComponent, 'PPLNT: Reduced shares for '+workerAddress+' round:' + round.height + ' maxTime:'+maxTime+'sec timePeriod:'+roundTo(timePeriod,6)+' shares:'+tshares+' lost:'+lost+' new:'+shares); diff --git a/pool_configs/examples/vrsc.json b/pool_configs/examples/vrsc.json index c0f81073..af3fd906 100644 --- a/pool_configs/examples/vrsc.json +++ b/pool_configs/examples/vrsc.json @@ -34,6 +34,8 @@ "enabled": true, "paymentMode": "prop", "_comment_paymentMode":"prop, pplnt", + "pplnt": 51, + "_comment_pplnt": "If pplnt is active and clients have mined less that this part, their shares are slashed." "paymentInterval": 120, "_comment_paymentInterval": "Interval in seconds to check and perform payments.", "minimumPayment": 1,