mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-09 02:59:31 +08:00
script: add SCRIPT_ERR_SCRIPTNUM error
It will be used for errors related to CScriptNum (e.g. overflow or encoding errors). Currently, we simply return unknown error for these errors.
This commit is contained in:
@@ -117,6 +117,8 @@ std::string ScriptErrorString(const ScriptError serror)
|
||||
return "Using OP_CODESEPARATOR in non-witness script";
|
||||
case SCRIPT_ERR_SIG_FINDANDDELETE:
|
||||
return "Signature is found in scriptCode";
|
||||
case SCRIPT_ERR_SCRIPTNUM:
|
||||
return "Script number overflowed or is non-minimally encoded";
|
||||
case SCRIPT_ERR_UNKNOWN_ERROR:
|
||||
case SCRIPT_ERR_ERROR_COUNT:
|
||||
default: break;
|
||||
|
||||
@@ -14,6 +14,7 @@ typedef enum ScriptError_t
|
||||
SCRIPT_ERR_UNKNOWN_ERROR,
|
||||
SCRIPT_ERR_EVAL_FALSE,
|
||||
SCRIPT_ERR_OP_RETURN,
|
||||
SCRIPT_ERR_SCRIPTNUM,
|
||||
|
||||
/* Max sizes */
|
||||
SCRIPT_ERR_SCRIPT_SIZE,
|
||||
|
||||
Reference in New Issue
Block a user