Make NOP1-NOP10 opcode execution non-standard.
This commit makes use of the new ScriptDiscourageUpgradableNops flag to reject execution of NOP1 through NOP10 for transactions that are considered standard. This mirrors the behavior added to Bitcoin Core via pull request 5000.
This commit is contained in:
parent
8ebbd3a38e
commit
7180e2a92b
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,8 @@ const (
|
||||||
// are more strict.
|
// are more strict.
|
||||||
standardScriptVerifyFlags = btcscript.ScriptBip16 |
|
standardScriptVerifyFlags = btcscript.ScriptBip16 |
|
||||||
btcscript.ScriptCanonicalSignatures |
|
btcscript.ScriptCanonicalSignatures |
|
||||||
btcscript.ScriptStrictMultiSig
|
btcscript.ScriptStrictMultiSig |
|
||||||
|
btcscript.ScriptDiscourageUpgradableNops
|
||||||
)
|
)
|
||||||
|
|
||||||
// txPrioItem houses a transaction along with extra information that allows the
|
// txPrioItem houses a transaction along with extra information that allows the
|
||||||
|
|
Loading…
Reference in a new issue