paypro: allow unconfirmed unspent outputs in paypro tx proposals.

This commit is contained in:
Christopher Jeffrey 2014-08-13 20:22:14 -04:00 committed by Manuel Araoz
commit f64b1eee28

View file

@ -932,11 +932,11 @@ Wallet.prototype.receivePaymentRequest = function(options, pr, cb) {
if (!unspent || !unspent.length) { if (!unspent || !unspent.length) {
return cb(new Error('No unspent outputs available.')); return cb(new Error('No unspent outputs available.'));
} }
self.createPaymentTxSync(options, merchantData, safeUnspent); self.createPaymentTxSync(options, merchantData, unspent);
return cb(null, merchantData, pr); return cb(null, merchantData, pr);
} }
var ntxid = self.createPaymentTxSync(options, merchantData, safeUnspent); var ntxid = self.createPaymentTxSync(options, merchantData, unspent);
if (ntxid) { if (ntxid) {
self.sendIndexes(); self.sendIndexes();
self.sendTxProposal(ntxid); self.sendTxProposal(ntxid);