Branch: refs/heads/master
Home: https://github.com/btcsuite/btcd
Commit: a8fe1ad5fe0615e6f2bb4d0df1c5726815bfeeab
https://github.com/btcsuite/btcd/commit/a8fe1ad5fe0615e6f2bb4d0df1c5726815bfeeab
Author: Dave Collins <[email protected]>
Date: 2015-04-29 (Wed, 29 Apr 2015)
Changed paths:
M txscript/engine.go
M txscript/opcode.go
M txscript/script.go
M txscript/script_test.go
M txscript/sign.go
M txscript/stack.go
Log Message:
-----------
txscript: Code consistency and doco improvements.
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