aboutsummaryrefslogtreecommitdiff
path: root/src/script/interpreter.h
diff options
context:
space:
mode:
authorJohnson Lau <jl2012@users.noreply.github.com>2016-09-22 15:06:54 +0800
committerWladimir J. van der Laan <laanwj@gmail.com>2016-10-13 20:01:46 +0200
commit3e80ab7f2a338d1bb3d9321c13a18f1324130617 (patch)
tree25cb8185aae70ad6738aff11c573ab4353acea1f /src/script/interpreter.h
parent0027672c8075d063f376c8c84e1cce77d572d353 (diff)
downloadbitcoin-3e80ab7f2a338d1bb3d9321c13a18f1324130617.tar.xz
Add policy: null signature for failed CHECK(MULTI)SIG
Github-Pull: #8634 Rebased-From: e41bd449ab2b8d01260795383af2c40b659d8587
Diffstat (limited to 'src/script/interpreter.h')
-rw-r--r--src/script/interpreter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/interpreter.h b/src/script/interpreter.h
index 2ce4b23e54..0adc9482ff 100644
--- a/src/script/interpreter.h
+++ b/src/script/interpreter.h
@@ -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);