fail if fee level cannot be get

This commit is contained in:
Matias Alejo Garcia 2016-03-04 10:44:13 -03:00
commit 667e70d7f6
2 changed files with 13 additions and 11 deletions

View file

@ -103,7 +103,8 @@ angular.module('copayApp.services').factory('txService', function($rootScope, pr
};
getFee(function(err, feePerKb) {
if (err) $log.debug(err);
if (err) return cb(err);
opts.feePerKb = feePerKb;
opts.excludeUnconfirmedUtxos = currentSpendUnconfirmed ? false : true;
fc.createTxProposal(opts, function(err, txp) {