Skip to content

Commit

Permalink
[MPOS] pass share difficulty to MySQL (#601)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
HashUnlimited authored and zone117x committed May 25, 2018
1 parent a122910 commit 2afb47a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/mposCompatibility.js
Expand Up @@ -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 : '')
];
Expand Down

0 comments on commit 2afb47a

Please sign in to comment.