add comment regarding coins selection

This commit is contained in:
Matias Alejo Garcia 2014-03-16 23:51:35 -03:00
parent 041f06aae1
commit eb8763ac9f
1 changed files with 4 additions and 0 deletions

View File

@ -736,6 +736,10 @@ Transaction.selectUnspent = function (utxos, totalNeededAmount, allowUnconfirmed
maxConfirmations = minConfirmations;
} while( !fulfill && minConfirmationSteps.length);
//TODO(?): sort ret and check is some inputs can be avoided.
//If the initial utxos are sorted, this step would be necesary only if
//utxos were selected from different minConfirmationSteps.
return fulfill ? ret : null;
}