|
|
@ -505,6 +505,7 @@ WalletService.prototype._selectTxInputs = function(txp, cb) { |
|
|
|
txp.inputs = selected; |
|
|
|
bitcoreTx = txp.getBitcoreTx(); |
|
|
|
txp.inputPaths = _.pluck(txp.inputs, 'path'); |
|
|
|
txp.fee = bitcoreTx.getFee(); |
|
|
|
return cb(); |
|
|
|
} catch (ex) { |
|
|
|
if (ex.name != 'bitcore.ErrorTransactionFeeError') { |
|
|
@ -574,7 +575,6 @@ WalletService.prototype.createTx = function(opts, cb) { |
|
|
|
requiredRejections: Math.min(wallet.m, wallet.n - wallet.m + 1), |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
self._selectTxInputs(txp, function(err) { |
|
|
|
if (err) return cb(err); |
|
|
|
|
|
|
|