Skip to content

Commit

Permalink
Update shareProcessor.js
Browse files Browse the repository at this point in the history
Separately track PBaaS shares for external rewards processing.
  • Loading branch information
hellcatz authored May 20, 2023
1 parent 147713b commit 2c9375f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/shareProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ module.exports = function(logger, poolConfig){
var redisCommands = [];

if (isValidShare) {
redisCommands.push(['hincrbyfloat', coin + ':shares:pbaasCurrent', shareData.worker, shareData.difficulty]);
redisCommands.push(['hincrbyfloat', coin + ':shares:roundCurrent', shareData.worker, shareData.difficulty]);
redisCommands.push(['hincrby', coin + ':stats', 'validShares', 1]);
} else {
Expand Down

0 comments on commit 2c9375f

Please sign in to comment.