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

Remove active_elections::trim #4611

Merged

Conversation

clemahieu
Copy link
Contributor

This change removes the active_elections::trim function which is problematic with more advanced scheduler logic.

The code is not hit during normal operation because each scheduler already checks its own internal limits before starting elections.

This value was never changed from default.
pwojcikdev
pwojcikdev previously approved these changes May 10, 2024
nano/node/json_handler.cpp Show resolved Hide resolved
@qwahzi qwahzi added this to the V27 milestone May 11, 2024
Each scheduler checks its own limits with calls to active_elections::vacancy.
Trim is problematic as it indiscriminately cancels elections without consideration to why it was scheduled or its priority.
@clemahieu clemahieu force-pushed the remove_active_elections_trim branch from fd65cd9 to 53589b3 Compare May 13, 2024 08:09
@clemahieu clemahieu merged commit f9b2439 into nanocurrency:develop May 13, 2024
24 of 26 checks passed
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