-
Notifications
You must be signed in to change notification settings - Fork 143
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
feat: Initial TssVoteHandler #16061
feat: Initial TssVoteHandler #16061
Conversation
2f3a264
to
c3080cf
Compare
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #16061 +/- ##
=============================================
+ Coverage 58.05% 58.27% +0.22%
- Complexity 19765 19912 +147
=============================================
Files 2726 2731 +5
Lines 99747 100129 +382
Branches 10295 10346 +51
=============================================
+ Hits 57908 58354 +446
+ Misses 38233 38150 -83
- Partials 3606 3625 +19
|
c3080cf
to
7e8fe83
Compare
Node: HAPI Test (Restart) Results7 tests 1 ✅ 2m 4s ⏱️ For more details on these parsing errors and failures, see this check. Results for commit 4fc3543. |
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! Thanks @derektriley
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. Thanks @derektriley 👍
hedera-node/hedera-app/src/main/java/com/hedera/node/app/tss/handlers/TssVoteHandler.java
Outdated
Show resolved
Hide resolved
9fe6d39
Signed-off-by: Derek Riley <derek.riley@swirldslabs.com>
Signed-off-by: Derek Riley <derek.riley@swirldslabs.com>
Signed-off-by: Derek Riley <derek.riley@swirldslabs.com>
Signed-off-by: Derek Riley <derek.riley@swirldslabs.com>
Signed-off-by: Derek Riley <derek.riley@swirldslabs.com>
9fe6d39
to
6441a20
Compare
hedera-node/hedera-app/src/main/java/com/hedera/node/app/tss/handlers/TssVoteHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
hedera-node/hedera-app/src/main/java/com/hedera/node/app/tss/handlers/TssVoteHandler.java
Show resolved
Hide resolved
hedera-node/hedera-app/src/main/java/com/hedera/node/app/tss/handlers/TssVoteHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
025ae09
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!
Signed-off-by: Derek Riley <derek.riley@swirldslabs.com> Signed-off-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com> Co-authored-by: Neeharika-Sompalli <neeharika.sompalli@swirldslabs.com>
Description:
This pull request introduces an initial implementation of the
TssVoteHandler
class, mainly focusing on vote handling and threshold checking. It also includes unit tests to ensure the correctness of these functionalities.TssVoteHandler
:Vote Handling Logic:
hedera-node/hedera-app/src/main/java/com/hedera/node/app/tss/handlers/TssVoteHandler.java
)hasReachedThreshold
method to verify if the required threshold of vote consensus weight has been met. (hedera-node/hedera-app/src/main/java/com/hedera/node/app/tss/handlers/TssVoteHandler.java
)Constants and Imports:
CONSENSUS_VOTE_THRESHOLD_ONE_THIRD
to support the new vote handling logic. (hedera-node/hedera-app/src/main/java/com/hedera/node/app/tss/handlers/TssVoteHandler.java
) [1] [2]Unit Tests:
hedera-node/hedera-app/src/test/java/com/hedera/node/app/tss/handlers/TssVoteHandlerTest.java
)handle
andhasReachedThreshold
methods. (hedera-node/hedera-app/src/test/java/com/hedera/node/app/tss/handlers/TssVoteHandlerTest.java
)Related issue(s):
Fixes #14750
Notes for reviewer:
Checklist