Add HasCanonicalPushes(), and use it in IsStandardTx

This commit is contained in:
Pieter Wuille
2013-09-24 00:48:00 +02:00
committed by Pieter Wuille
parent 9aea601b05
commit 87fe71e1fc
4 changed files with 53 additions and 1 deletions

View File

@@ -442,6 +442,10 @@ bool IsStandardTx(const CTransaction& tx, string& reason)
reason = "scriptsig-not-pushonly";
return false;
}
if (!txin.scriptSig.HasCanonicalPushes()) {
reason = "non-canonical-push";
return false;
}
}
unsigned int nDataOut = 0;