mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02: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:
parent
d752ba86c1
commit
698c6abb25
11 changed files with 101 additions and 59 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue