Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
Update paymentProcessor.js
Browse files Browse the repository at this point in the history
Remove pending confirmations that are no longer pending from redis
  • Loading branch information
hellcatz authored Mar 9, 2017
1 parent 498219d commit d23aa8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/paymentProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d23aa8f

Please sign in to comment.