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

Simplify Leader Quorum Calculations for Commit and Prepare Phases #4813

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

GheisMohammadi
Copy link
Contributor

This PR simplifies the leader quorum calculation process for the commit and prepare phases by leveraging the State structure to store the last quorum-achieved block. Previously, the quorum status was checked dynamically, which could lead to inaccuracies under certain conditions. By using a state-based approach, the process becomes more efficient and reliable, ensuring better consistency in quorum handling.

@sophoah
Copy link
Contributor

sophoah commented Dec 12, 2024

are streamsync manager code intended to be in as well ?

@GheisMohammadi
Copy link
Contributor Author

are streamsync manager code intended to be in as well ?

No, it only moves SafeMap to common folder to be able to be used everywhere

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.

2 participants