Skip to content

Commit 38c201f

Browse files
committed
Merge #11418: Add error string for CLEANSTACK script violation
cee28fb Add error string for CLEANSTACK script violation, preventing an "unknown error" if the CLEANSTACK error condition is set. (Mark Friedenbach) Pull request description: This prevents an unhelpful "unknown error" from being printed in test logs if the CLEANSTACK error condition is set. Tree-SHA512: cd6764e930184aef3d662e40c67f2ea8aea8552a26d33a567d0315a19d707a82aa2afad9f48ecbb731aa5b77fbbfbd7a6a3a989fdb1424a1181350052ff2a9b5
2 parents ff4cd60 + cee28fb commit 38c201f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/script/script_error.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ const char* ScriptErrorString(const ScriptError serror)
7373
return "Witness version reserved for soft-fork upgrades";
7474
case SCRIPT_ERR_PUBKEYTYPE:
7575
return "Public key is neither compressed or uncompressed";
76+
case SCRIPT_ERR_CLEANSTACK:
77+
return "Extra items left on stack after execution";
7678
case SCRIPT_ERR_WITNESS_PROGRAM_WRONG_LENGTH:
7779
return "Witness program has incorrect length";
7880
case SCRIPT_ERR_WITNESS_PROGRAM_WITNESS_EMPTY:

0 commit comments

Comments
 (0)