From eb8763ac9f4e5e2f170576782882bc6e7296f8d4 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Sun, 16 Mar 2014 23:51:35 -0300 Subject: [PATCH] add comment regarding coins selection --- Transaction.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Transaction.js b/Transaction.js index c16a2525c..f9c8e6914 100644 --- a/Transaction.js +++ b/Transaction.js @@ -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; }