Allow shares of float difficulties to be inserted into redis instead of just integers.
This commit is contained in:
parent
4a651dec89
commit
514d04d6ad
@ -54,7 +54,7 @@ module.exports = function(logger, poolConfig){
|
|||||||
var redisCommands = [];
|
var redisCommands = [];
|
||||||
|
|
||||||
if (isValidShare){
|
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]);
|
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
|
/* Stores share diff, worker, and unique value with a score that is the timestamp. Unique value ensures it
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user