Skip to content

Extend election lifetime when receiving new votes#4527

Open
RickiNano wants to merge 1 commit intonanocurrency:developfrom
RickiNano:Active-election-time-out
Open

Extend election lifetime when receiving new votes#4527
RickiNano wants to merge 1 commit intonanocurrency:developfrom
RickiNano:Active-election-time-out

Conversation

@RickiNano
Copy link
Copy Markdown
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
@RickiNano RickiNano force-pushed the Active-election-time-out branch from 76c550c to b0f61f1 Compare May 19, 2024 18:50
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