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: Move opcode execution logic to engine #405

Merged
merged 1 commit into from
Apr 27, 2015

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Apr 27, 2015

This pull request moves the opcode execution logic from the opcode type to the engine type because execution of an opcode modifies the engine state (primarily the main and alternate data stacks) as opposed to the state of the opcode. Making the engine the receiver more clearly indicates this fact.

This commit moves the opcode execution logic from the opcode type to the
engine type because execution of an opcode modifies the engine state
(primarily the main and alternate data stacks) as opposed to the state
of the opcode.  Making the engine the receiver more clearly indicates
this fact.
@dajohi
Copy link
Member

dajohi commented Apr 27, 2015

OK

@conformal-deploy conformal-deploy merged commit 2e433b0 into btcsuite:master Apr 27, 2015
@davecgh davecgh deleted the txscript_move_exec_logic branch April 27, 2015 19:41
jcvernaleo pushed a commit to jcvernaleo/btcd that referenced this pull request Oct 10, 2016
The dumpblockchain function used to serialize a map of block
into gob serialized format, which was used for testing but which
was incompatible with the addblock tool.  The function now dumps
a flat file the the same format required by the addblock tool.

A couple shutdown assertions were added as well, to prevent
potential panics if pointers were nil.  The duration of time
it took to sync the blockchain with addblock is now
reported.
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