diff --git a/src/script/script_error.cpp b/src/script/script_error.cpp --- a/src/script/script_error.cpp +++ b/src/script/script_error.cpp @@ -99,7 +99,7 @@ case ScriptError::PUBKEYTYPE: return "Public key is neither compressed or uncompressed"; case ScriptError::CLEANSTACK: - return "Extra items left on stack after execution"; + return "Stack size must be exactly one after execution"; case ScriptError::ILLEGAL_FORKID: return "Illegal use of SIGHASH_FORKID"; case ScriptError::MUST_USE_FORKID: diff --git a/test/functional/abc-segwit-recovery.py b/test/functional/abc-segwit-recovery.py --- a/test/functional/abc-segwit-recovery.py +++ b/test/functional/abc-segwit-recovery.py @@ -39,7 +39,7 @@ TEST_TIME = int(time.time()) # Error due to non clean stack -CLEANSTACK_ERROR = 'non-mandatory-script-verify-flag (Extra items left on stack after execution)' +CLEANSTACK_ERROR = 'non-mandatory-script-verify-flag (Stack size must be exactly one after execution)' RPC_CLEANSTACK_ERROR = CLEANSTACK_ERROR EVAL_FALSE_ERROR = 'non-mandatory-script-verify-flag (Script evaluated without error but finished with a false/empty top stack elem' RPC_EVAL_FALSE_ERROR = EVAL_FALSE_ERROR + "ent)"