mirror of https://github.com/BTCPrivate/z-nomp.git
Merge pull request #263 from hellcatz/payment_fix
Update paymentProcessor.js
This commit is contained in:
commit
621181ce69
|
@ -735,7 +735,9 @@ function SetupForPool(logger, poolOptions, setupFinished){
|
||||||
}
|
}
|
||||||
var round = rounds[i];
|
var round = rounds[i];
|
||||||
// update confirmations for round
|
// update confirmations for round
|
||||||
|
if (tx && tx.result)
|
||||||
round.confirmations = parseInt((tx.result.confirmations || 0));
|
round.confirmations = parseInt((tx.result.confirmations || 0));
|
||||||
|
|
||||||
// look for transaction errors
|
// look for transaction errors
|
||||||
if (tx.error && tx.error.code === -5){
|
if (tx.error && tx.error.code === -5){
|
||||||
logger.warning(logSystem, logComponent, 'Daemon reports invalid transaction: ' + round.txHash);
|
logger.warning(logSystem, logComponent, 'Daemon reports invalid transaction: ' + round.txHash);
|
||||||
|
|
Loading…
Reference in New Issue