diff options
| author | Mark Friedenbach <[email protected]> | 2017-09-29 01:48:43 -0700 |
|---|---|---|
| committer | Mark Friedenbach <[email protected]> | 2017-09-29 01:48:43 -0700 |
| commit | cee28fbc3f0555ca41bdeff4ceec29fa62257ab8 (patch) | |
| tree | df87aa9d396ea28b0a1d869d3ad1aa5e30d88e9b /src/script/script_error.cpp | |
| parent | Merge #11414: [docs] Remove partial gitian build instructions from descriptor... (diff) | |
| download | discoin-cee28fbc3f0555ca41bdeff4ceec29fa62257ab8.tar.xz discoin-cee28fbc3f0555ca41bdeff4ceec29fa62257ab8.zip | |
Add error string for CLEANSTACK script violation, preventing an "unknown error" if the CLEANSTACK error condition is set.
Diffstat (limited to 'src/script/script_error.cpp')
| -rw-r--r-- | src/script/script_error.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/script_error.cpp b/src/script/script_error.cpp index c9d13c92a..6c590f53e 100644 --- a/src/script/script_error.cpp +++ b/src/script/script_error.cpp @@ -73,6 +73,8 @@ const char* ScriptErrorString(const ScriptError serror) return "Witness version reserved for soft-fork upgrades"; case SCRIPT_ERR_PUBKEYTYPE: return "Public key is neither compressed or uncompressed"; + case SCRIPT_ERR_CLEANSTACK: + return "Extra items left on stack after execution"; case SCRIPT_ERR_WITNESS_PROGRAM_WRONG_LENGTH: return "Witness program has incorrect length"; case SCRIPT_ERR_WITNESS_PROGRAM_WITNESS_EMPTY: |