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

fix: prevent data race conditions in committee #452

Merged
merged 5 commits into from
May 6, 2023

Conversation

b00f
Copy link
Collaborator

@b00f b00f commented May 6, 2023

Description

Prevent data race conditions in committee by cloning validators.

This commit addresses a potential data race condition that can occur when a validator inside the committee updates. To prevent this, we now clone validators. This ensures that the original validators are not modified and eliminates the possibility of data race conditions.

@codecov
Copy link

codecov bot commented May 6, 2023

Codecov Report

Merging #452 (f0c4b85) into main (b82e18f) will decrease coverage by 0.03%.
The diff coverage is 87.50%.

@@            Coverage Diff             @@
##             main     #452      +/-   ##
==========================================
- Coverage   82.53%   82.50%   -0.03%     
==========================================
  Files         149      149              
  Lines        6992     6975      -17     
==========================================
- Hits         5771     5755      -16     
- Misses        932      933       +1     
+ Partials      289      287       -2     

@themantre themantre merged commit b91f686 into pactus-project:main May 6, 2023
@b00f b00f deleted the fixing-deadlock branch May 6, 2023 11:20
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