Revert "paypro: deal with no unspent outputs. see #1043."

This reverts commit 6b5a618f0f7155c11ee734ef54ab3876b5923768.
This commit is contained in:
Christopher Jeffrey 2014-08-06 16:30:58 -07:00 committed by Manuel Araoz
parent 8bebbe8ec6
commit ab06e8b4ea
2 changed files with 0 additions and 9 deletions

View File

@ -17,12 +17,6 @@ angular.module('copayApp.directives')
// Is this a payment protocol URI (BIP-72)?
if (uri && uri.merchant) {
scope.wallet.fetchPaymentTx(uri.merchant, function(err, merchantData) {
if ((err && err.message === 'No unspent outputs.')
|| scope.availableBalance < +merchantData.total) {
ctrl.$setValidity('validAddress', false);
return;
}
if (err) {
if (scope._resetPayPro) scope._resetPayPro();
ctrl.$setValidity('validAddress', false);

View File

@ -933,9 +933,6 @@ Wallet.prototype.receivePaymentRequest = function(options, pr, cb) {
return this.getUnspent(function(err, unspent) {
if (options.fetch) {
if (!unspent || !unspent.length) {
return cb(new Error('No unspent outputs.'));
}
self.createPaymentTxSync(options, merchantData, unspent);
return cb(null, merchantData, pr);
}