Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

txscript: Cleanup and add tests for div opcode. #1290

Merged
merged 1 commit into from Jun 13, 2018

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jun 13, 2018

This cleans up the code for handling the div opcode to explicitly call out its semantics which are likely not otherwise obvious as well as improve its readability.

It also adds several tests to the reference script tests which exercise the semantics of the div opcode including both positive and negative tests.

Copy link
Member

@dajohi dajohi left a comment

Choose a reason for hiding this comment

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

ok

@davecgh davecgh added this to the 1.3.0 milestone Jun 13, 2018
This cleans up the code for handling the div opcode to explicitly call
out its semantics which are likely not otherwise obvious as well as
improve its readability.

It also adds several tests to the reference script tests which exercise
the semantics of the div opcode including both positive and negative
tests.
@davecgh davecgh merged commit 1080a97 into decred:master Jun 13, 2018
@davecgh davecgh deleted the txscript_cleanup_opdiv branch June 13, 2018 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants