Skip to content

Conversation

@jl2012
Copy link
Contributor

@jl2012 jl2012 commented Jan 1, 2019

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

@DrahtBot
Copy link
Contributor

DrahtBot commented Jan 3, 2019

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #15045 ([test] Apply maximal flags to tx_valid tests and minimal flags to tx_invalid tests by jl2012)

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.

catch (ScriptError runtime_error)
{
return set_error(serror, runtime_error);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Remove redundant newline at end of block :-)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also our catch syntax is } catch (ScriptError runtime_error) { — but let's first get Concept ACKs on this before nitting it

@meshcollider
Copy link
Contributor

utACK 50605f0

@fanquake
Copy link
Member

Going to take this over in a new PR.

@fanquake fanquake closed this Sep 16, 2019
fanquake added a commit to fanquake/bitcoin that referenced this pull request Sep 16, 2019
Instead of reporting "unknown error", more specific messages are returned for CScriptNum related errors.

Original PR: bitcoin#15074

Co-Authored-By: Johnson Lau <[email protected]>
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants