Allow shares of float difficulties to be inserted into redis instead of just integers.

This commit is contained in:
Matt 2014-03-28 10:19:10 -06:00
parent 4a651dec89
commit 514d04d6ad
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ module.exports = function(logger, poolConfig){
var redisCommands = [];
if (isValidShare){
redisCommands.push(['hincrby', coin + '_shares:roundCurrent', shareData.worker, shareData.difficulty]);
redisCommands.push(['hincrbyfloat', coin + '_shares:roundCurrent', shareData.worker, shareData.difficulty]);
redisCommands.push(['hincrby', coin + '_stats', 'validShares', 1]);
/* Stores share diff, worker, and unique value with a score that is the timestamp. Unique value ensures it