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: Remove unconfigurable chain var. #1996

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Nov 4, 2019

This removes the main chain block size instance variable since it is merely set to a constant and is not configurable anyway. While here, it also moves the prune height calculation outside of the loop and renames the variables related to the main chain block cache to be more consistent with the rest of the code.

@davecgh davecgh added this to the 1.6.0 milestone Nov 4, 2019
@davecgh davecgh force-pushed the blockchain_constant_for_main_block_cache branch from 933cdb6 to b8b3875 Compare November 4, 2019 02:05
This removes the main chain block size instance variable since it is
merely set to a constant and is not configurable anyway.  While here, it
also moves the prune height calculation outside of the loop and renames
the variables related to the main chain block cache to be more
consistent with the rest of the code.
@davecgh davecgh force-pushed the blockchain_constant_for_main_block_cache branch from b8b3875 to 6f6403a Compare November 4, 2019 19:10
@davecgh davecgh merged commit 6f6403a into decred:master Nov 4, 2019
@davecgh davecgh deleted the blockchain_constant_for_main_block_cache branch November 4, 2019 19:27
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