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:
Dave Collins 2015-01-29 14:55:02 -06:00
parent 8ebbd3a38e
commit 7180e2a92b

View file

@ -48,7 +48,8 @@ const (
// are more strict.
standardScriptVerifyFlags = btcscript.ScriptBip16 |
btcscript.ScriptCanonicalSignatures |
btcscript.ScriptStrictMultiSig
btcscript.ScriptStrictMultiSig |
btcscript.ScriptDiscourageUpgradableNops
)
// txPrioItem houses a transaction along with extra information that allows the