Add policy: null signature for failed CHECK(MULTI)SIG

This commit is contained in:
Johnson Lau
2016-09-22 15:06:54 +08:00
committed by Johnson Lau
parent 5a4f6d72e6
commit e41bd449ab
8 changed files with 55 additions and 2 deletions
+4
View File
@@ -98,6 +98,10 @@ enum
// Segwit script only: Require the argument of OP_IF/NOTIF to be exactly 0x01 or empty vector
//
SCRIPT_VERIFY_MINIMALIF = (1U << 13),
// Signature(s) must be empty vector if an CHECK(MULTI)SIG operation failed
//
SCRIPT_VERIFY_NULLFAIL = (1U << 14),
};
bool CheckSignatureEncoding(const std::vector<unsigned char> &vchSig, unsigned int flags, ScriptError* serror);