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

Vote replay in crawler #2497

Merged
merged 3 commits into from
Jan 25, 2020
Merged

Vote replay in crawler #2497

merged 3 commits into from
Jan 25, 2020

Conversation

clemahieu
Copy link
Contributor

This change moves the responsibility for informing reps of very-behind sequence numbers off of the vote processor an on to the rep crawler.

  • Moves infrequently used codepath out of hot code section
  • Removes database transactions from vote processor entirely.
  • Eliminate unneeded deque construction of validated votes.

…ntly needed codepath and it only really needs to be done once and can be done during rep discovery.
@guilhermelawless guilhermelawless added performance Performance/resource utilization improvement quality improvements This item indicates the need for or supplies changes that improve maintainability labels Jan 20, 2020
@guilhermelawless guilhermelawless added this to the V21.0 milestone Jan 20, 2020
@zhyatt zhyatt requested a review from SergiySW January 20, 2020 14:36
@SergiySW
Copy link
Contributor

Is informing reps of very-behind sequence numbers supposed to work only for crawler targets then?

@clemahieu
Copy link
Contributor Author

Yes, this is just to catch an actual rep up to speed. After the rep is updated they will continue to increase their sequence numbers as usual and everyone else will receive the new votes.

cryptocode
cryptocode previously approved these changes Jan 24, 2020
@clemahieu clemahieu merged commit b2c094a into develop Jan 25, 2020
@guilhermelawless guilhermelawless deleted the vote_replay_in_crawler branch January 25, 2020 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance/resource utilization improvement quality improvements This item indicates the need for or supplies changes that improve maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants