mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
Add HasCanonicalPushes(), and use it in IsStandardTx
This commit is contained in:
committed by
Pieter Wuille
parent
9aea601b05
commit
87fe71e1fc
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user