paypro: tentatively reimplement commit that caused regression.
This commit is contained in:
parent
ab06e8b4ea
commit
2b5102a493
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue