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 improve opcode tests. #406

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Apr 28, 2015

  • Remove all redundant opcode tests in favor of the JSON-based tests in the data directory.
  • Remove duplicate stack nip test
  • Add new tests to data/script_invalid.json to exercise additional negative error paths
  • Remove old unneeded pubkey trace code from opcodeCheckSig
  • Simplify and improve the disassembly print function
  • Add new tests to directly test all individual opcode disassembly
  • Add new tests to directly test opcode disabled function which does not get invoked during ordinary execution
  • Improve test coverage of opcode.go

@davecgh davecgh force-pushed the txscript_cleanup_opcode_tests branch from 1e0f27e to 4e56bcd Compare April 28, 2015 07:57
- Remove all redundant opcode tests in favor of the JSON-based tests
  in the data directory.
- Remove duplicate stack nip test
- Add new tests to data/script_invalid.json to exercise additional
  negative error paths
- Remove old unneeded pubkey trace code from opcodeCheckSig
- Simplify and improve the disassembly print function
- Add new tests to directly test all individual opcode disassembly
- Add new tests to directly test opcode disabled function which does not
  get invoked during ordinary execution
- Improve test coverage of opcode.go
@davecgh davecgh force-pushed the txscript_cleanup_opcode_tests branch from 4e56bcd to 8ef68dc Compare April 28, 2015 08:19
@conformal-deploy conformal-deploy merged commit 8ef68dc into btcsuite:master Apr 28, 2015
@davecgh davecgh deleted the txscript_cleanup_opcode_tests branch April 28, 2015 15:36
cjepson added a commit to cjepson/btcd that referenced this pull request Oct 7, 2016
Sidechain and orphan blocks were given in previous version of the
software in response to the RPC command getblock, in line with
bitcoind.  Insight relied on this functionality.  It has been
restored in 0.5.0.  Fixes btcsuite#406.
cjepson added a commit to cjepson/btcd that referenced this pull request Oct 7, 2016
Sidechain and orphan blocks were given in previous version of the
software in response to the RPC command getblock, in line with
bitcoind.  Insight relied on this functionality.  It has been
restored in 0.5.0.  Fixes btcsuite#406.
cjepson added a commit to cjepson/btcd that referenced this pull request Oct 11, 2016
Sidechain and orphan blocks were given in previous version of the
software in response to the RPC command getblock, in line with
bitcoind.  Insight relied on this functionality.  It has been
restored in 0.5.0.  Fixes btcsuite#406.
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