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

refactor(committee): using generic list for validators #667

Merged
merged 5 commits into from
Aug 26, 2023

Conversation

kehiy
Copy link
Contributor

@kehiy kehiy commented Aug 26, 2023

Description

This PR updates the validator list to use a generic implementation, eliminating the need for runtime type castings and enhancing overall efficiency.

@kehiy kehiy added enhancement New feature or request Consensus labels Aug 26, 2023
@kehiy kehiy requested a review from b00f August 26, 2023 12:26
@codecov
Copy link

codecov bot commented Aug 26, 2023

Codecov Report

Merging #667 (60517b4) into main (4622c3f) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #667      +/-   ##
==========================================
+ Coverage   83.67%   83.73%   +0.05%     
==========================================
  Files         155      155              
  Lines        7303     7328      +25     
==========================================
+ Hits         6111     6136      +25     
  Misses        914      914              
  Partials      278      278              

util/linkedmap/linkedmap.go Outdated Show resolved Hide resolved
util/linkedlist/linkedlist.go Show resolved Hide resolved
@b00f b00f changed the title feat(util): linkedlist (doubly and singly) refactor(committee): using generic list for validators Aug 26, 2023
@b00f b00f merged commit 7b25860 into pactus-project:main Aug 26, 2023
12 checks passed
@kehiy kehiy deleted the feature/linkedlist branch August 26, 2023 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Consensus enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants