Update paymentProcessor.js

Remove pending confirmations that are no longer pending from redis
This commit is contained in:
hellcatz 2017-03-08 22:15:10 -08:00 committed by GitHub
parent 498219deb1
commit d23aa8f084
1 changed files with 3 additions and 3 deletions

View File

@ -480,9 +480,9 @@ function SetupForPool(logger, poolOptions, setupFinished){
// update confirmations in redis for pending blocks // update confirmations in redis for pending blocks
var confirmsUpdate = blockDetails.map(function(b){ var confirmsUpdate = blockDetails.map(function(b){
if (b.result != null && b.result.confirmations > 0) { if (b.result != null && b.result.confirmations > 0) {
//if (b.result.confirmations > 100) { if (b.result.confirmations > 100) {
// return ['hdel', logComponent + ':blocksPendingConfirms', b.result.hash]; return ['hdel', logComponent + ':blocksPendingConfirms', b.result.hash];
//} }
return ['hset', logComponent + ':blocksPendingConfirms', b.result.hash, b.result.confirmations]; return ['hset', logComponent + ':blocksPendingConfirms', b.result.hash, b.result.confirmations];
} }
return null; return null;