From 2afb47a8c985e17c7f1c54b79afe1608c5563979 Mon Sep 17 00:00:00 2001 From: Michael Polzer Date: Fri, 25 May 2018 04:31:12 +0300 Subject: [PATCH] [MPOS] pass share difficulty to MySQL (#601) Miners should be paid by actual shares, this requires the share diff to be known to the payment processor. Worker diff isn't correct here. --- libs/mposCompatibility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/mposCompatibility.js b/libs/mposCompatibility.js index 6f044c4..63b3673 100644 --- a/libs/mposCompatibility.js +++ b/libs/mposCompatibility.js @@ -85,7 +85,7 @@ module.exports = function(logger, poolConfig){ shareData.worker, isValidShare ? 'Y' : 'N', isValidBlock ? 'Y' : 'N', - shareData.difficulty * (poolConfig.coin.mposDiffMultiplier || 1), + shareData.shareDiff * (poolConfig.coin.mposDiffMultiplier || 1), typeof(shareData.error) === 'undefined' ? null : shareData.error, shareData.blockHash ? shareData.blockHash : (shareData.blockHashInvalid ? shareData.blockHashInvalid : '') ];