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: Rename Script to Engine. #389

Merged
merged 1 commit into from
Apr 20, 2015

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Apr 20, 2015

This pull request renames the Script type to Engine to better reflect its purpose. It also renames the NewScript function to NewEngine to match.

This is being done because name Script for the engine is confusing since it implies it is an actual script rather than the execution environment for the script. It also paves the way for eventually supplying a
ParsedScript type which will be less likely to be confused with the execution environment.

While moving the code, some additional variable names and comments have been updated to better match the style used throughout the rest of the code base. In addition, an attempt has been made to use consistent naming of the engine as 'vm' instead of using different variables names as it was previously.

Finally, the relevant engine code has been moved into a new file named engine.go and related tests moved to engine_test.go.

This commit renames the Script type to Engine to better reflect its
purpose.  It also renames the NewScript function to NewEngine to match.

This is being done because name Script for the engine is confusing since
it implies it is an actual script rather than the execution environment
for the script.  It also paves the way for eventually supplying a
ParsedScript type which will be less likely to be confused with the
execution environment.

While moving the code, some additional variable names and comments have
been updated to better match the style used throughout the rest of the
code base.  In addition, an attempt has been made to use consistent naming
of the engine as 'vm' instead of using different variables names as it was
previously.

Finally, the relevant engine code has been moved into a new file named
engine.go and related tests moved to engine_test.go.
@jrick
Copy link
Member

jrick commented Apr 20, 2015

ok

@conformal-deploy conformal-deploy merged commit 8dd7412 into btcsuite:master Apr 20, 2015
@davecgh davecgh deleted the txscript_to_engine branch April 20, 2015 21:24
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