mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-11-22 10:13:55 +01: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
|
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) {
|
if (totalPaid + amountToPay > rewardTotal) {
|
||||||
amountToPay = rewardTotal - totalPaid;
|
amountToPay = rewardTotal - totalPaid;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user