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

blockchain: Add negative tests for forced reorg. #1341

Merged
merged 1 commit into from
Jul 10, 2018

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jul 7, 2018

This adds tests which ensure invalid blocks are rejected when attempting to force a reorganization to them.

It also creates the invalid blocks in such a way that some of them have block index entries while others do not to ensure both scenarios are handled correctly.

@davecgh davecgh added this to the 1.3.0 milestone Jul 9, 2018
This adds tests which ensure invalid blocks are rejected when attempting
to force a reorganization to them.

It also creates the invalid blocks in such a way that some of them have
block index entries while others do not to ensure both scenarios are
handled correctly.
@davecgh davecgh force-pushed the blockchain_blockindex_negative_tests branch from 89ba493 to eec4f96 Compare July 10, 2018 04:47
@davecgh davecgh merged commit eec4f96 into decred:master Jul 10, 2018
@davecgh davecgh deleted the blockchain_blockindex_negative_tests branch July 10, 2018 05:22
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.

2 participants