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:
Bruno Garcia
2026-01-22 10:04:29 -03:00
parent 691dc830c6
commit 0ca4dcd786
2 changed files with 3 additions and 0 deletions

View File

@@ -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,