mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
Fix misleading error message: Clean stack rule
Error messages in cleanstack is misleading as it lets the user believe that there are extra elements on stack which is incorrect if the stack is empty.
This commit is contained in:
parent
1b313cacc9
commit
af57766182
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ std::string ScriptErrorString(const ScriptError serror)
|
|||
case SCRIPT_ERR_PUBKEYTYPE:
|
||||
return "Public key is neither compressed or uncompressed";
|
||||
case SCRIPT_ERR_CLEANSTACK:
|
||||
return "Extra items left on stack after execution";
|
||||
return "Stack size must be exactly one after execution";
|
||||
case SCRIPT_ERR_WITNESS_PROGRAM_WRONG_LENGTH:
|
||||
return "Witness program has incorrect length";
|
||||
case SCRIPT_ERR_WITNESS_PROGRAM_WITNESS_EMPTY:
|
||||
|
|
Loading…
Add table
Reference in a new issue