From 514d04d6adc12bf92fc6b009368c8d5518f58332 Mon Sep 17 00:00:00 2001 From: Matt Date: Fri, 28 Mar 2014 10:19:10 -0600 Subject: [PATCH] Allow shares of float difficulties to be inserted into redis instead of just integers. --- libs/shareProcessor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/shareProcessor.js b/libs/shareProcessor.js index 9534189..56229a2 100644 --- a/libs/shareProcessor.js +++ b/libs/shareProcessor.js @@ -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