Fixed "missing output details to pool address" error messages for some types of coins

This commit is contained in:
Matt 2014-05-04 02:21:15 -06:00
parent 8b8b00e2f6
commit 81c3a66bde
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}