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

Increased AEC alignment by using dynamic timeouts #4352

Open
RickiNano opened this issue Dec 21, 2023 · 0 comments
Open

Increased AEC alignment by using dynamic timeouts #4352

RickiNano opened this issue Dec 21, 2023 · 0 comments

Comments

@RickiNano
Copy link
Contributor

Summary

The current AEC container size defaults to 5000 slots of which 1000 are reserved for hinted scheduling. The 4000 normal elections have a timeout of five minutes.
During intense spam nodes may end up with a distinct set of elections in their local AEC that doesn't overlap other nodes' AEC sets. Each election is occupying a slot for 5 minutes even if it doesn't receive any votes
Proposed solution:

  • Reduce the default election timeout from 5 minutes to 10 or 30 seconds.
  • Every time a new vote is received, the timeout for that election is extended.

What problem would be solved by this feature?

This approach allows the node to quickly purge elections that the rest of the network is not actively voting for, while retaining those that are receiving votes and thus more likely to get confirmed.
A backlog would potentially be resolved much faster

Are there any previous requests for this feature?

Not that I know of

Do you have a suggested solution?

Described above

If this feature is approved, would you be willing to submit a pull request with the solution?

I am willing to collaborate

Possible solution

Described above

Supporting files

No response

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

No branches or pull requests

1 participant