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: Allow named blocks in chaingen harness. #1701

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Mar 26, 2019

This introduces two new functions on the chaingen harness, named AcceptBlock and RejectBlock, which allow ensuring a named block is accepted or rejected, respectively, and redefines the existing Accepted and Rejected functions which only deal with the tip block in terms of the new functions.

It also renames Accepted and Rejected to AcceptTipBlock and RejectTipBlock, respectively.

The motivation for this change is to make it easier to test future code which will allow processing of headers and blocks independently as well as processing blocks out of order so long as their headers are already known.

@davecgh davecgh added this to the 1.5.0 milestone Mar 26, 2019
This introduces two new functions on the chaingen harness, named
AcceptBlock and RejectBlock, which allow ensuring a named block is
accepted or rejected, respectively, and redefines the existing Accepted
and Rejected functions which only deal with the tip block in terms of
the new functions.

It also renames Accepted and Rejected to AcceptTipBlock and
RejectTipBlock, respectively.

The motivation for this change is to make it easier to test future code
which will allow processing of headers and blocks independently as well
as processing blocks out of order so long as their headers are already
known.
@davecgh davecgh force-pushed the blockchain_chaingen_harness_named_blocks branch from e7cdbee to 25deee6 Compare March 28, 2019 21:56
@davecgh davecgh merged commit 25deee6 into decred:master Mar 28, 2019
@davecgh davecgh deleted the blockchain_chaingen_harness_named_blocks branch March 28, 2019 22: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.

2 participants