Merge pull request #263 from hellcatz/payment_fix

Update paymentProcessor.js
This commit is contained in:
sennevb 2018-01-06 22:37:30 +01:00 committed by GitHub
commit 621181ce69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -735,7 +735,9 @@ function SetupForPool(logger, poolOptions, setupFinished){
}
var round = rounds[i];
// update confirmations for round
round.confirmations = parseInt((tx.result.confirmations || 0));
if (tx && tx.result)
round.confirmations = parseInt((tx.result.confirmations || 0));
// look for transaction errors
if (tx.error && tx.error.code === -5){
logger.warning(logSystem, logComponent, 'Daemon reports invalid transaction: ' + round.txHash);