-
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: Add ENTITY_COUNTS
state in EntityIdService
#17421
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
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 @@
## main #17421 +/- ##
============================================
+ Coverage 68.74% 68.78% +0.03%
- Complexity 22590 22626 +36
============================================
Files 2610 2612 +2
Lines 97209 97323 +114
Branches 10129 10131 +2
============================================
+ Hits 66828 66943 +115
Misses 26565 26565
+ Partials 3816 3815 -1
|
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
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, very nice work @Neeharika-Sompalli !
Signed-off-by: Neeharika-Sompalli <[email protected]>
Signed-off-by: Neeharika-Sompalli <[email protected]>
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, tyvm @Neeharika-Sompalli !
/** | ||
* The number of contract bytecodes in the network. | ||
*/ | ||
uint64 num_contract_bytecodes = 13; |
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.
Are all these counters needed? I assume counter updates are not free from performance perspective, so if a counter is actually not needed, there is no need to track it...
SCHEDULE, | ||
CONTRACT_BYTECODE, | ||
CONTRACT_STORAGE, | ||
STAKING_INFO |
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 don't know where this enum is used. Are enum ordinals persisted anywhere? A change like this will affect the ordinals
import edu.umd.cs.findbugs.annotations.NonNull; | ||
import java.util.Set; | ||
|
||
public class V0590EntityIdSchema extends Schema { |
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.
Should it be named V059EntityCountersSchema instead of V059EntityIdSchema? There is alread "entity ID schema" in 0.49
Related to #17316
Fixes #17427
ENTITY_COUNTS
state inEntityIdService
in 0.59ENTITY_COUNTS
KVState.size
will be deprecated and should not be used any more. Future PRs will remove all the references of it and useENTITY_COUNTS
state insteadTesting: