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: Pass parent block in connection code. #998

Merged
merged 1 commit into from
Jan 31, 2018

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jan 31, 2018

This requires PR #997.

This modifies the block connection code paths to accept the parent block in addition to the block as a parameter versus loading it on demand in the called functions. This makes the dependency more explicit and also ensures it doesn't potentially get loaded multiple times in the reorg case.

@davecgh davecgh force-pushed the blockchain_pass_parents branch 2 times, most recently from 2743f4a to c2629b3 Compare January 31, 2018 16:21
Copy link
Contributor

@jolan jolan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tOK

This modifies the block connection code paths to accept the parent block
in addition to the block as a parameter versus loading it on demand in
the called functions.  This makes the dependency more explicit and also
ensures it doesn't potentially get loaded multiple times in the reorg
case.
@davecgh davecgh force-pushed the blockchain_pass_parents branch from c2629b3 to 53d0926 Compare January 31, 2018 18:35
@davecgh davecgh merged commit 53d0926 into decred:master Jan 31, 2018
@davecgh davecgh deleted the blockchain_pass_parents branch January 31, 2018 18:49
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