add comment regarding coins selection
This commit is contained in:
parent
041f06aae1
commit
eb8763ac9f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue