From 49791bcfdf4b2da14405a00b2845a43c686ed6fa Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Tue, 8 Mar 2016 15:28:49 -0300 Subject: [PATCH] remove redundant check for very small utxos --- lib/server.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/server.js b/lib/server.js index aaa0cfd..67b0824 100644 --- a/lib/server.js +++ b/lib/server.js @@ -1342,11 +1342,6 @@ WalletService.prototype._selectTxInputs = function(txp, utxosToExclude, cb) { _.each(smallInputs, function(input, i) { log.debug('Input #' + i + ': ' + Utils.formatUtxos(input)); - if (input.satoshis < feePerInput) { - log.debug('The input does not cover the extra fees (' + Utils.formatAmountInBtc(feePerInput) + ')'); - return false; - } - var netInputAmount = input.satoshis - feePerInput; log.debug('The input contributes ' + Utils.formatAmountInBtc(netInputAmount));