mirror of https://github.com/BTCPrivate/z-nomp.git
Fixed "missing output details to pool address" error messages for some types of coins
This commit is contained in:
parent
8b8b00e2f6
commit
81c3a66bde
|
@ -235,6 +235,11 @@ function SetupForPool(logger, poolOptions, setupFinished){
|
|||
return tx.address === poolOptions.address;
|
||||
})[0];
|
||||
|
||||
|
||||
if (!generationTx && tx.result.details.length === 1){
|
||||
generationTx = tx.results.details[0];
|
||||
}
|
||||
|
||||
if (!generationTx){
|
||||
logger.error(logSystem, logComponent, 'Missing output details to pool address for transaction '
|
||||
+ round.txHash);
|
||||
|
@ -243,7 +248,7 @@ function SetupForPool(logger, poolOptions, setupFinished){
|
|||
|
||||
round.category = generationTx.category;
|
||||
if (round.category === 'generate') {
|
||||
round.reward = generationTx.amount;
|
||||
round.reward = generationTx.amount || generationTx.value;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue