Instead of reporting “unknown error”, more specific messages are returned for CScriptNum related errors.
Also replaced throw
with assert
in case opcode
is negative or bigger than 0xff, which should never happen
Instead of reporting “unknown error”, more specific messages are returned for CScriptNum related errors.
Also replaced throw
with assert
in case opcode
is negative or bigger than 0xff, which should never happen
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
1071@@ -1072,6 +1072,11 @@ bool EvalScript(std::vector<std::vector<unsigned char> >& stack, const CScript&
1072 return set_error(serror, SCRIPT_ERR_STACK_SIZE);
1073 }
1074 }
1075+ catch (ScriptError runtime_error)
1076+ {
1077+ return set_error(serror, runtime_error);
1078+
} catch (ScriptError runtime_error) {
— but let’s first get Concept ACKs on this before nitting it