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

Extend election lifetime when receiving new votes #4527

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

RickiNano
Copy link
Contributor

@RickiNano RickiNano commented Mar 30, 2024

This PR adds a dynamic Time-To-Live on elections to improve the AEC alignment and efficiency during heavy load.

The TTL has been reduced to 30 seconds for normal elections and 10 seconds for hinted and optimistic elections but is extended every time a new vote arrive.

Blocks that are not getting any votes are getting evicted from AEC much earlier, while blocks with active voting have a higher chance of staying in the AEC and reach confirmation.

Related issue: #4352

Edit: Rebased May 8th
Edit2: Rebased on develop again due to changes in election.cpp

@RickiNano RickiNano force-pushed the Active-election-time-out branch 2 times, most recently from 4e558ad to 76c550c Compare May 9, 2024 09:22
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.

1 participant