mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 15:19:07 +01:00
Add SCRIPT_VERIFY_MINIMALDATA (BIP62 rules 3 and 4)
Also use the new flag as a standard rule, and replace the IsCanonicalPush standardness check with it (as it is more complete).
This commit is contained in:
@@ -633,10 +633,6 @@ bool IsStandardTx(const CTransaction& tx, string& reason)
|
||||
reason = "scriptsig-not-pushonly";
|
||||
return false;
|
||||
}
|
||||
if (!txin.scriptSig.HasCanonicalPushes()) {
|
||||
reason = "scriptsig-non-canonical-push";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int nDataOut = 0;
|
||||
|
||||
Reference in New Issue
Block a user