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 Chain interface into separate do-er interfaces #651

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

masih
Copy link
Member

@masih masih commented Sep 22, 2024

Refactor the Chain interface into two separate smaller interfaces for a more pluggable committee caching.

Refactor committee cache out of participant.

This work is part of a larger refactor of validation mechanism and is separated into its own commit for easier review.

Part of #561

@masih masih force-pushed the masih/chain-interface-refactor-committee-cache branch 2 times, most recently from b751eb0 to aabb38e Compare September 22, 2024 20:12
@masih masih requested a review from Stebalien September 22, 2024 20:13
Copy link

codecov bot commented Sep 22, 2024

Codecov Report

Attention: Patch coverage is 84.50704% with 11 lines in your changes missing coverage. Please review.

Project coverage is 79.04%. Comparing base (b802002) to head (7fae253).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
host.go 59.09% 7 Missing and 2 partials ⚠️
emulator/host.go 85.71% 1 Missing ⚠️
gpbft/participant.go 94.73% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #651      +/-   ##
==========================================
- Coverage   79.32%   79.04%   -0.29%     
==========================================
  Files          54       55       +1     
  Lines        4886     4906      +20     
==========================================
+ Hits         3876     3878       +2     
- Misses        633      645      +12     
- Partials      377      383       +6     
Files with missing lines Coverage Δ
gpbft/committee.go 100.00% <100.00%> (ø)
gpbft/errors.go 100.00% <ø> (ø)
emulator/host.go 78.78% <85.71%> (+1.01%) ⬆️
gpbft/participant.go 85.94% <94.73%> (-1.06%) ⬇️
host.go 67.99% <59.09%> (-3.19%) ⬇️

... and 1 file with indirect coverage changes

@masih masih force-pushed the masih/chain-interface-refactor-committee-cache branch from aabb38e to 259aa08 Compare September 22, 2024 20:39
gpbft/committee.go Outdated Show resolved Hide resolved
gpbft/committee.go Outdated Show resolved Hide resolved
Refactor the `Chain` interface into two separate smaller interfaces for
a more pluggable committee caching.

Refactor committee cache out of participant.

This work is part of a larger refactor of validation mechanism and is
separated into its own commit for easier review.

Part of #561
@masih masih force-pushed the masih/chain-interface-refactor-committee-cache branch from 259aa08 to 7fae253 Compare September 23, 2024 09:45
@masih masih enabled auto-merge September 23, 2024 09:48
@masih masih added this pull request to the merge queue Sep 23, 2024
Merged via the queue into main with commit 95179da Sep 23, 2024
13 checks passed
@masih masih deleted the masih/chain-interface-refactor-committee-cache branch September 23, 2024 10:26
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