paypro: start verifying raw payment requests before signing.

This commit is contained in:
Christopher Jeffrey 2014-08-05 11:07:16 -07:00 committed by Manuel Araoz
parent 0d4db05bf6
commit 6ccbf292c5
1 changed files with 6 additions and 0 deletions

View File

@ -718,6 +718,12 @@ Wallet.prototype.sign = function(ntxid, cb) {
// if (cb) cb(false);
// }
//
if (!self.verifyPaymentRequest(ntxid)) {
if (cb) cb(false);
return;
}
var keys = self.privateKey.getForPaths(txp.inputChainPaths);
var b = txp.builder;