-
Notifications
You must be signed in to change notification settings - Fork 106
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
go/roothash: Finish commitment processing early when possible #3790
Conversation
f6c10a6
to
b5d2085
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! The ProcessCommitments
code looks correct. Be sure to add tests to pool_test for the new early processing cases (i know you already plan to do it 😬 )
Codecov Report
@@ Coverage Diff @@
## master #3790 +/- ##
==========================================
+ Coverage 67.10% 67.22% +0.11%
==========================================
Files 403 403
Lines 40912 40874 -38
==========================================
+ Hits 27454 27477 +23
+ Misses 9567 9506 -61
Partials 3891 3891
Continue to review full report at Codecov.
|
b5d2085
to
a5631b0
Compare
Yeah, test case is in now. Please take one more look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
When the set of current commitments already determines the fate of the process (e.g., when there is a discrepancy or a majority of votes indicate success), proceed with the process instead of waiting for the remaining commitments.
a5631b0
to
d604107
Compare
When the set of current commitments already determines the fate of the process
(e.g., when there is a discrepancy or a majority of votes indicate success),
proceed with the process instead of waiting for the remaining commitments.