mirror of https://github.com/BTCPrivate/copay.git
Revert "paypro: remove debug code."
This reverts commit 019283e04cb6b25f6431cb56f02618c6d9e7fe90.
This commit is contained in:
parent
28459c2d4e
commit
a9b522888e
|
@ -1015,6 +1015,9 @@ Wallet.prototype.receivePaymentRequest = function(options, pr, cb) {
|
||||||
total: bignum('0', 10).toString(10)
|
total: bignum('0', 10).toString(10)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.log('receivePaymentRequest');
|
||||||
|
console.log(merchantData);
|
||||||
|
|
||||||
return this.getUnspent(function(err, unspent) {
|
return this.getUnspent(function(err, unspent) {
|
||||||
if (options.fetch) {
|
if (options.fetch) {
|
||||||
self.createPaymentTxSync(options, merchantData, unspent);
|
self.createPaymentTxSync(options, merchantData, unspent);
|
||||||
|
@ -1187,6 +1190,9 @@ Wallet.prototype.createPaymentTxSync = function(options, merchantData, unspent)
|
||||||
var signed = b.sign(keys);
|
var signed = b.sign(keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('createPaymentTxSync:1');
|
||||||
|
console.log(merchantData);
|
||||||
|
|
||||||
if (typeof merchantData.total === 'string') {
|
if (typeof merchantData.total === 'string') {
|
||||||
merchantData.total = bignum(merchantData.total, 10);
|
merchantData.total = bignum(merchantData.total, 10);
|
||||||
}
|
}
|
||||||
|
@ -1227,6 +1233,9 @@ Wallet.prototype.createPaymentTxSync = function(options, merchantData, unspent)
|
||||||
|
|
||||||
merchantData.total = merchantData.total.toString(10);
|
merchantData.total = merchantData.total.toString(10);
|
||||||
|
|
||||||
|
console.log('createPaymentTxSync:2');
|
||||||
|
console.log(merchantData);
|
||||||
|
|
||||||
if (options.fetch) return;
|
if (options.fetch) return;
|
||||||
|
|
||||||
this.log('');
|
this.log('');
|
||||||
|
|
Loading…
Reference in New Issue