diff options
| author | Johnson Lau <[email protected]> | 2016-09-23 13:06:45 +0800 |
|---|---|---|
| committer | Johnson Lau <[email protected]> | 2016-09-23 13:07:38 +0800 |
| commit | c72c5b1e3bd42e84465677e94aa83316ff3d9a14 (patch) | |
| tree | 4b53ce9d63e5292b79e4699437ab69d38d17bcbd /src/script/interpreter.h | |
| parent | Merge #8785: Comment on CNode::nLocalServices meaning (diff) | |
| download | discoin-c72c5b1e3bd42e84465677e94aa83316ff3d9a14.tar.xz discoin-c72c5b1e3bd42e84465677e94aa83316ff3d9a14.zip | |
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 e5d7865cd..2ce4b23e5 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); |