paypro: tentatively reimplement commit that caused regression.

This commit is contained in:
Christopher Jeffrey 2014-08-06 16:40:32 -07:00 committed by Manuel Araoz
commit 2b5102a493

View file

@ -933,6 +933,9 @@ 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);
}