-
Notifications
You must be signed in to change notification settings - Fork 29
refactor(metadata): pre-refactors for migrating feature states to static metadata [part 3/12] #1016
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8ca2d7a
to
4fcfecc
Compare
dafeaf5
to
b560a03
Compare
Merged
1 task
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1016 +/- ##
==========================================
- Coverage 84.62% 84.59% -0.04%
==========================================
Files 317 317
Lines 24150 24150
Branches 3665 3662 -3
==========================================
- Hits 20438 20429 -9
- Misses 3006 3011 +5
- Partials 706 710 +4 ☔ View full report in Codecov by Sentry. |
glevco
commented
May 3, 2024
1 task
1 task
9e960f7
to
a43cb95
Compare
b560a03
to
3381848
Compare
bd946c3
to
d76939e
Compare
1d39805
to
00b7ce1
Compare
7e7fdc8
to
31f9b03
Compare
00b7ce1
to
9e9b5a5
Compare
a4e34f1
to
8d4f344
Compare
069f959
to
a95006a
Compare
fcbcac1
to
701b787
Compare
Base automatically changed from
refactor/metadata/migrate-static-metadata-2
to
master
August 22, 2024 17:30
a95006a
to
58fdabf
Compare
|
Report | Fri, August 23, 2024 at 21:40:23 UTC |
Project | hathor-core |
Branch | refactor/metadata/clean-up-refactors-3 |
Testbed | ubuntu-22.04 |
Click to view all benchmark results
Benchmark | Latency | Latency Results nanoseconds (ns) | (Δ%) | Latency Lower Boundary nanoseconds (ns) | (%) | Latency Upper Boundary nanoseconds (ns) | (%) |
---|---|---|---|---|
sync-v2 (up to 20000 blocks) | ✅ (view plot) | 101,529,965,611.26 (-0.90%) | 92,204,136,196.06 (90.81%) | 112,693,944,239.63 (90.09%) |
Bencher - Continuous Benchmarking
View Public Perf Page
Docs | Repo | Chat | Help
msbrogli
requested changes
Aug 22, 2024
58fdabf
to
112d6dc
Compare
msbrogli
reviewed
Aug 26, 2024
msbrogli
approved these changes
Aug 26, 2024
jansegre
approved these changes
Aug 27, 2024
2 tasks
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Depends on #1014
Motivation
Continuing with the static metadata refactor introduced in PRs #1013 and #1014, the next step is to move the
feature_states
attribute from metadata to static metadata.This was initially implemented in PR #1015, which turned out to be too large, so it was divided into 3 PRs: this one, #1017, and #1018. The latter is the one that actually moves the
feature_states
attribute, and the first two PRs perform simple refactors that were either necessary or small improvements.Therefore, this PR simply performs some pre-refactors to debloat the main PR.
Acceptance Criteria
verify_aux_pow()
verification fromverify_without_storage()
toverify()
.FeatureService.get_bits_description()
toget_feature_infos()
, andFeatureDescription
toFeatureInfo
.FeatureService._get_ancestor_at_height()
to assert that a block exists in the height index when it must.FeatureState
enum to be a unique string enum, likeFeature
(this will be important for serialization), and implementis_active()
.BaseModel
s instead, which will be necessary for (de)serialization.Checklist
master
, confirm this code is production-ready and can be included in future releases as soon as it gets merged