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: Code consistency and doco improvements. #408

Merged
merged 1 commit into from
May 1, 2015

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Apr 29, 2015

This pull request contains a lot of cleanup on the txscript code to make it more consistent with the code throughout the rest of the project. It doesn't change any operational logic.

The following is an overview of the changes:

  • Add a significant number of comments throughout in order to better explain what the code is doing
  • Fix several comment typos
  • Move a couple of constants only used by the engine to engine.go
  • Move a variable only used by the engine to engine.go
  • Fix a couple of format specifiers in the test prints
  • Reorder functions so they're defined before/closer to use
  • Make the code lint clean with the exception of the opcode definitions

This commit contains a lot of cleanup on the txscript code to make it
more consistent with the code throughout the rest of the project.  It
doesn't change any operational logic.

The following is an overview of the changes:

- Add a significant number of comments throughout in order to better
  explain what the code is doing
- Fix several comment typos
- Move a couple of constants only used by the engine to engine.go
- Move a variable only used by the engine to engine.go
- Fix a couple of format specifiers in the test prints
- Reorder functions so they're defined before/closer to use
- Make the code lint clean with the exception of the opcode definitions
@dajohi
Copy link
Member

dajohi commented May 1, 2015

OK

@conformal-deploy conformal-deploy merged commit a8fe1ad into btcsuite:master May 1, 2015
@davecgh davecgh deleted the txscript_cleanup branch May 1, 2015 01:18
jcvernaleo pushed a commit to jcvernaleo/btcd that referenced this pull request Oct 10, 2016
The files were moved to the peer pkg
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.

3 participants