Merge pull request #1742 from sipa/canonical

Check for canonical public keys and signatures
This commit is contained in:
Jeff Garzik
2012-10-20 10:56:04 -07:00
12 changed files with 245 additions and 62 deletions

View File

@@ -469,7 +469,7 @@ Value signrawtransaction(const Array& params, bool fHelp)
{
txin.scriptSig = CombineSignatures(prevPubKey, mergedTx, i, txin.scriptSig, txv.vin[i].scriptSig);
}
if (!VerifyScript(txin.scriptSig, prevPubKey, mergedTx, i, true, 0))
if (!VerifyScript(txin.scriptSig, prevPubKey, mergedTx, i, true, true, 0))
fComplete = false;
}