diff options
author | Johnson Lau <jl2012@xbt.hk> | 2016-09-23 13:06:45 +0800 |
---|---|---|
committer | Johnson Lau <jl2012@xbt.hk> | 2016-09-23 13:07:38 +0800 |
commit | c72c5b1e3bd42e84465677e94aa83316ff3d9a14 (patch) | |
tree | 4b53ce9d63e5292b79e4699437ab69d38d17bcbd /src/script/interpreter.h | |
parent | 2b514aa2eae61839ad162b2f6e5ba69ef96c5c97 (diff) |
Make non-minimal OP_IF/NOTIF argument non-standard for P2WSH
Diffstat (limited to 'src/script/interpreter.h')
-rw-r--r-- | src/script/interpreter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/interpreter.h b/src/script/interpreter.h index e5d7865cd3..2ce4b23e54 100644 --- a/src/script/interpreter.h +++ b/src/script/interpreter.h @@ -94,6 +94,10 @@ enum // Making v1-v16 witness program non-standard // SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM = (1U << 12), + + // Segwit script only: Require the argument of OP_IF/NOTIF to be exactly 0x01 or empty vector + // + SCRIPT_VERIFY_MINIMALIF = (1U << 13), }; bool CheckSignatureEncoding(const std::vector<unsigned char> &vchSig, unsigned int flags, ScriptError* serror); |