Check for canonical public keys and signatures

Only enabled inside tests for now.
This commit is contained in:
Pieter Wuille
2012-08-22 22:33:21 +02:00
parent bfc24bd4ce
commit 58bc86e37f
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;
}