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

blockmanager: remove block manager chain state. #1420

Merged
merged 3 commits into from Sep 12, 2018

Conversation

dnldd
Copy link
Member

@dnldd dnldd commented Aug 23, 2018

This PR requires #1417, #1418 and #1419.

Port of upstream commit 2274d36 (subset).

@davecgh davecgh added this to the 1.4.0 milestone Aug 23, 2018
blockmanager.go Outdated
// Query the chain for the latest best block
// since the block that was processed could be
// on a side chain or have caused a reorg.
// Fetch the best block fom the state snapshot, the block processed
Copy link
Member

Choose a reason for hiding this comment

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

This comment isn't correct if you look just above, you can see that this case clearly only runs when the block extended the main chain.

Port of upstream commit 2274d36 (subset). In preparation of the
removal of chainState.
Port of upstream commit 2274d36 (subset). In preparation of the
removal of chainState.
@davecgh davecgh merged commit 7b22549 into decred:master Sep 12, 2018
JFixby pushed a commit to JFixby/dcrd that referenced this pull request Sep 20, 2019
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.

None yet

2 participants