-
Notifications
You must be signed in to change notification settings - Fork 14
Re-use variable in IexecPoco2Delegate
in contribute(...)
function
#168
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
Conversation
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.
LGTM pour moi
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #168 +/- ##
========================================
Coverage 84.68% 84.68%
========================================
Files 35 35
Lines 1084 1084
Branches 221 221
========================================
Hits 918 918
Misses 166 166 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Zied Guesmi <26070035+zguesmi@users.noreply.github.com>
IexecPoco2Delegate
in contribute(...)
functionIexecPoco2Delegate
in contribute(...)
function
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.
Thanks!
consensus.group[_resultHash] = group + delta; | ||
consensus.total = consensus.total + delta; | ||
|
||
// Check consensus |
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.
I wonder if we should/could do something here for gas footprint (outside of this PR if yes):
PoCo/contracts/modules/delegates/IexecPoco2Delegate.sol
Lines 386 to 388 in 3cd2e22
m_contributions[_taskid][w].resultHash == _consensus && m_contributions[_taskid][w].status == IexecLibCore_v5.ContributionStatusEnum.CONTRIBUTED // REJECTED contribution must not be count m_workerScores[worker] = m_workerScores[worker] + 1;
No description provided.