mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Update to move to shareMulti setting, rather than the hard-coded 2 value.
This commit is contained in:
+1
-1
@@ -258,7 +258,7 @@ function calculatePPLNSPayments(blockHeader) {
|
||||
amount: 0
|
||||
};
|
||||
}
|
||||
let amountToPay = Math.floor((shareData.shares / (blockDiff*2)) * rewardTotal);
|
||||
let amountToPay = Math.floor((shareData.shares / (blockDiff*global.config.pplns.shareMulti)) * rewardTotal);
|
||||
if (totalPaid + amountToPay > rewardTotal) {
|
||||
amountToPay = rewardTotal - totalPaid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user