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

server: Remove unnecessary vote ntfn check. #2942

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented May 10, 2022

This removes the check for whether or not the block height is after the height of the final checkpoint when deciding whether to send a vote notification since it is no longer necessary or has any effect.

The reason it no longer has any effect is because there is a check prior to it that ensures the the chain is considered current and the more recent headers-first syncing means the chain will not be considered current until the block associated with the best known header is reached which is always ahead of any checkpoint.

@davecgh davecgh added this to the 1.8.0 milestone May 10, 2022
This removes the check for whether or not the block height is after the
height of the final checkpoint when deciding whether to send a vote
notification since it is no longer necessary or has any effect.

The reason it no longer has any effect is because there is a check prior
to it that ensures the the chain is considered current and the more
recent headers-first syncing means the chain will not be considered
current until the block associated with the best known header is reached
which is always ahead of any checkpoint.
@davecgh davecgh force-pushed the server_remove_unnecessary_vote_ntfn_check branch from a99216d to bc06c8d Compare May 13, 2022 07:14
@davecgh davecgh merged commit bc06c8d into decred:master May 13, 2022
@davecgh davecgh deleted the server_remove_unnecessary_vote_ntfn_check branch May 13, 2022 07:18
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