[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.
This commit is contained in:
Michael Polzer 2018-05-25 04:31:12 +03:00 committed by Matthew Little
parent a1229102ee
commit 2afb47a8c9

View File

@ -85,7 +85,7 @@ module.exports = function(logger, poolConfig){
shareData.worker, shareData.worker,
isValidShare ? 'Y' : 'N', isValidShare ? 'Y' : 'N',
isValidBlock ? 'Y' : 'N', isValidBlock ? 'Y' : 'N',
shareData.difficulty * (poolConfig.coin.mposDiffMultiplier || 1), shareData.shareDiff * (poolConfig.coin.mposDiffMultiplier || 1),
typeof(shareData.error) === 'undefined' ? null : shareData.error, typeof(shareData.error) === 'undefined' ? null : shareData.error,
shareData.blockHash ? shareData.blockHash : (shareData.blockHashInvalid ? shareData.blockHashInvalid : '') shareData.blockHash ? shareData.blockHash : (shareData.blockHashInvalid ? shareData.blockHashInvalid : '')
]; ];