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

Prevent election winner from being immediately reinserted into AEC #4313

Closed

Conversation

pwojcikdev
Copy link
Contributor

Test active_transactions.inactive_votes_cache_fork test is failing intermittently because of an AEC race condition. The problem is that is possible that a block that won an election will be immediately reinserted into the AEC. There is no way to atomically switch election to confirmed state and register it as recently confirmed, so this PR minimizes the chance of that happening. I think in this case the design tries to be too smart to the point of being impossible to implement with full correctness.

@pwojcikdev pwojcikdev force-pushed the fix-aec-confirmed-race branch from c17cf7a to 1f69bc0 Compare October 9, 2023 18:55
…oesn't need to be evaluated when debugging is off.
@dsiganos
Copy link
Contributor

I believe that there is nothing left to do with this PR.
All of the changes in this PR were already merged as part of this PR:
#4318

@dsiganos dsiganos closed this Jan 17, 2024
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