Make non-minimal OP_IF/NOTIF argument non-standard for P2WSH

This commit is contained in:
Johnson Lau
2016-09-23 13:06:45 +08:00
parent 2b514aa2ea
commit c72c5b1e3b
8 changed files with 101 additions and 2 deletions

View File

@@ -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);