paypro: fix invalid signature error.
This commit is contained in:
parent
5c9bb4982d
commit
efdf8c902a
1 changed files with 16 additions and 5 deletions
|
|
@ -1636,12 +1636,23 @@ Wallet.prototype.receivePaymentRequestACK = function(ntxid, tx, txp, ack, cb) {
|
||||||
var txid = tx.getHash().toString('hex');
|
var txid = tx.getHash().toString('hex');
|
||||||
var txHex = tx.serialize().toString('hex');
|
var txHex = tx.serialize().toString('hex');
|
||||||
log.debug('Raw transaction: ', txHex);
|
log.debug('Raw transaction: ', txHex);
|
||||||
log.debug('BITCOIND txid:', txid);
|
this.blockchain.broadcast(txHex, function(err, txid) {
|
||||||
this.txProposals.get(ntxid).setSent(txid);
|
log.debug('BITCOIND txid:', txid);
|
||||||
this.sendTxProposal(ntxid);
|
if (txid) {
|
||||||
this.store();
|
self.txProposals.get(ntxid).setSent(txid);
|
||||||
|
self.sendTxProposal(ntxid);
|
||||||
|
self.store();
|
||||||
|
return cb(txid, txp.merchant);
|
||||||
|
} else {
|
||||||
|
log.debug('Sent failed. Checking if the TX was sent already');
|
||||||
|
self._checkSentTx(ntxid, function(txid) {
|
||||||
|
if (txid)
|
||||||
|
self.store();
|
||||||
|
|
||||||
return cb(txid, txp.merchant);
|
return cb(txid, txp.merchant);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue