-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cleanup stategen pkg #7127
Cleanup stategen pkg #7127
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7127 +/- ##
==========================================
- Coverage 61.95% 61.67% -0.29%
==========================================
Files 410 406 -4
Lines 32826 32109 -717
==========================================
- Hits 20338 19803 -535
+ Misses 9618 9489 -129
+ Partials 2870 2817 -53 |
return cachedInfo.state, nil | ||
} | ||
|
||
summary, err := s.stateSummary(ctx, blockRoot) |
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.
Can this be nil?
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.
@@ -0,0 +1,16 @@ | |||
package stategen |
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.
Maybe rename this file to metrics.go for consistency
What type of PR is this?
What does this PR do? Why is it needed?
As we are heading towards further audits / mainnet, it's important we go through each package and perform the necessary clean ups. This PR cleans up the stategen pkg
loadHotStateByRoot
, it's justloadStatebyRoot
ComputeStateUpToSlot
,processStateUpTo
, andarchivedState
... etchot.go
andcold.go
undergetter.go
andsetter.go
as helpersWhich issues(s) does this PR fix?
N/A
Other notes for review
Tested:
1.)Validator run time
2.)Syncing from genesis to head using 32 slots archived point
3.)The following script