remove redundant check for very small utxos

This commit is contained in:
Ivan Socolsky 2016-03-08 15:28:49 -03:00
parent c01d1568bb
commit 49791bcfdf
1 changed files with 0 additions and 5 deletions

View File

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