From d23aa8f08429608bb7c6c1147186397c5370a997 Mon Sep 17 00:00:00 2001 From: hellcatz Date: Wed, 8 Mar 2017 22:15:10 -0800 Subject: [PATCH] Update paymentProcessor.js Remove pending confirmations that are no longer pending from redis --- libs/paymentProcessor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/paymentProcessor.js b/libs/paymentProcessor.js index 0612a3f..d7186fc 100644 --- a/libs/paymentProcessor.js +++ b/libs/paymentProcessor.js @@ -480,9 +480,9 @@ function SetupForPool(logger, poolOptions, setupFinished){ // update confirmations in redis for pending blocks var confirmsUpdate = blockDetails.map(function(b){ if (b.result != null && b.result.confirmations > 0) { - //if (b.result.confirmations > 100) { - // return ['hdel', logComponent + ':blocksPendingConfirms', b.result.hash]; - //} + if (b.result.confirmations > 100) { + return ['hdel', logComponent + ':blocksPendingConfirms', b.result.hash]; + } return ['hset', logComponent + ':blocksPendingConfirms', b.result.hash, b.result.confirmations]; } return null;