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

core/qbft: refactor value to generic comparable #509

Merged
merged 1 commit into from
May 10, 2022

Conversation

corverroos
Copy link
Contributor

Simplify and standardise qbft generic Value to built-in comparable.

This aligns the implementation with GoQuorum that uses hashes of the actual values in the algo. This makes the algo simpler and probably more performant. Actual values will need to "hidden" in the Msg implementation.

category: refactor
ticket: #445

@codecov
Copy link

codecov bot commented May 10, 2022

Codecov Report

Merging #509 (cc966e8) into main (8fd44c2) will increase coverage by 0.86%.
The diff coverage is 77.63%.

❗ Current head cc966e8 differs from pull request most recent head a739003. Consider uploading reports for the commit a739003 to get more accurate results

@@            Coverage Diff             @@
##             main     #509      +/-   ##
==========================================
+ Coverage   56.28%   57.14%   +0.86%     
==========================================
  Files          87       87              
  Lines        8004     8021      +17     
==========================================
+ Hits         4505     4584      +79     
+ Misses       2898     2830      -68     
- Partials      601      607       +6     
Impacted Files Coverage Δ
core/qbft/msgtype_string.go 40.00% <0.00%> (-10.00%) ⬇️
core/qbft/uponrule_string.go 40.00% <ø> (ø)
core/qbft/qbft.go 81.52% <78.66%> (+15.99%) ⬆️
app/app.go 63.31% <0.00%> (-0.89%) ⬇️
testutil/verifypr/verifypr.go 61.49% <0.00%> (+1.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update db999b9...a739003. Read the comment docs.

Comment on lines -31 to -32
// Suggest running tests continuously until cancelled with Ctrl-C.
//go:generate while go test . -count=1 -timeout=5s; do; done
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while in generate doesn't work

Base automatically changed from corver/qbftdecide to main May 10, 2022 11:31
@corverroos corverroos added the merge when ready Indicates bulldozer bot may merge when all checks pass label May 10, 2022
@obol-bulldozer obol-bulldozer bot merged commit d75d985 into main May 10, 2022
@obol-bulldozer obol-bulldozer bot deleted the corver/qbftvalue branch May 10, 2022 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants