aboutsummaryrefslogtreecommitdiff
path: root/src/script/interpreter.cpp
diff options
context:
space:
mode:
authorMark Friedenbach <mark@friedenbach.org>2018-01-12 16:31:22 +0900
committerMark Friedenbach <mark@friedenbach.org>2018-01-12 16:31:22 +0900
commit1e747e3c1e04a38c5ed6e8f8cd14077b8b7377c9 (patch)
tree6218fe7556540c4a3294c97c45e4c0efbbad413b /src/script/interpreter.cpp
parent45173fa6fca9537abb0a0554f731d14b9f89c456 (diff)
Make segwit failure due to CLEANSTACK violation return a SCRIPT_ERR_CLEANSTACK error code.
Diffstat (limited to 'src/script/interpreter.cpp')
-rw-r--r--src/script/interpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp
index 2cdff7ee57..c08b071e02 100644
--- a/src/script/interpreter.cpp
+++ b/src/script/interpreter.cpp
@@ -1400,7 +1400,7 @@ static bool VerifyWitnessProgram(const CScriptWitness& witness, int witversion,
// Scripts inside witness implicitly require cleanstack behaviour
if (stack.size() != 1)
- return set_error(serror, SCRIPT_ERR_EVAL_FALSE);
+ return set_error(serror, SCRIPT_ERR_CLEANSTACK);
if (!CastToBool(stack.back()))
return set_error(serror, SCRIPT_ERR_EVAL_FALSE);
return true;