mirror of https://github.com/BTCPrivate/z-nomp.git
Update paymentProcessor.js
Fixes Issue round.confirmations = parseInt((tx.result.confirmations || 0)); ^ TypeError: Cannot read property 'confirmations' of null
This commit is contained in:
parent
ff0e1f6f32
commit
0dd13bec9d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue