mirror of https://github.com/BTCPrivate/copay.git
paypro: start verifying raw payment requests before signing.
This commit is contained in:
parent
0d4db05bf6
commit
6ccbf292c5
|
@ -718,6 +718,12 @@ Wallet.prototype.sign = function(ntxid, cb) {
|
||||||
// if (cb) cb(false);
|
// if (cb) cb(false);
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
|
|
||||||
|
if (!self.verifyPaymentRequest(ntxid)) {
|
||||||
|
if (cb) cb(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var keys = self.privateKey.getForPaths(txp.inputChainPaths);
|
var keys = self.privateKey.getForPaths(txp.inputChainPaths);
|
||||||
|
|
||||||
var b = txp.builder;
|
var b = txp.builder;
|
||||||
|
|
Loading…
Reference in New Issue