mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
Merge #11418: Add error string for CLEANSTACK script violation
cee28fbc3
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
This commit is contained in:
commit
38c201f47c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user