mirror of https://github.com/BTCPrivate/z-nomp.git
Update paymentProcessor.js
Remove pending confirmations that are no longer pending from redis
This commit is contained in:
parent
498219deb1
commit
d23aa8f084
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue