Skip to content

Commit cee28fb

Browse files
committed
Add error string for CLEANSTACK script violation, preventing an "unknown error" if the CLEANSTACK error condition is set.
1 parent bbc901d commit cee28fb

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)