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 unused db update tracking. #3065

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Feb 26, 2023

This is rebased on #3060.

Many years ago, the various threshold states were stored in the database due to performance reasons. However, that logic was removed when the code was updated to support voting since other changes made it quite efficient to simply calculate the states at startup.

However, it appears that the dbUpdates field was not removed even though it's not actually used anymore. This removes the field and associated logic accordingly.

@davecgh davecgh added this to the 1.8.0 milestone Feb 26, 2023
Many years ago, the various threshold states were stored in the database
due to performance reasons.  However, that logic was removed when the
code was updated to support voting since other changes made it quite
efficient to simply calculate the states at startup.

However, it appears that the dbUpdates field was not removed even though
it's not actually used anymore.  This removes the field and associated
logic accordingly.
@davecgh davecgh force-pushed the blockchain_remove_unused_db_cache_update_tracking branch from 30c3e7f to 961b019 Compare February 28, 2023 06:06
@davecgh davecgh merged commit 961b019 into decred:master Feb 28, 2023
@davecgh davecgh deleted the blockchain_remove_unused_db_cache_update_tracking branch February 28, 2023 06:10
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