Skip to content
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(feature-activation): implement block ancestor optimization #644

Merged

Conversation

glevco
Copy link
Contributor

@glevco glevco commented Jun 1, 2023

Acceptance Criteria

  • Optimize FeatureService._get_ancestor_at_height() by using the height index if the block is in the best blockchain.
  • Implement create_peer_artifacts() method on simulator
  • Implement TransactionStorage.get_transaction_by_height()
  • Implement feature activation simulation test

@glevco glevco self-assigned this Jun 1, 2023
@codecov
Copy link

codecov bot commented Jun 1, 2023

Codecov Report

Merging #644 (51355e6) into master (7ac143f) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

❗ Current head 51355e6 differs from pull request most recent head 827f003. Consider uploading reports for the commit 827f003 to get more accurate results

@@            Coverage Diff             @@
##           master     #644      +/-   ##
==========================================
- Coverage   83.88%   83.86%   -0.02%     
==========================================
  Files         247      247              
  Lines       20376    20415      +39     
  Branches     2748     2758      +10     
==========================================
+ Hits        17093    17122      +29     
- Misses       2709     2711       +2     
- Partials      574      582       +8     
Impacted Files Coverage Δ
hathor/builder/builder.py 92.97% <100.00%> (ø)
hathor/feature_activation/feature_service.py 97.22% <100.00%> (+0.34%) ⬆️
hathor/simulator/simulator.py 94.70% <100.00%> (+0.06%) ⬆️
hathor/transaction/storage/transaction_storage.py 90.97% <100.00%> (-0.09%) ⬇️

... and 12 files with indirect coverage changes

@glevco glevco force-pushed the feat/feature-activation/get-endpoint branch from 9db398f to 7c0d2f5 Compare June 2, 2023 03:21
@glevco glevco force-pushed the feat/feature-activation/block-ancestor-optimization branch from ab2e73e to bb2aa75 Compare June 2, 2023 03:22
msbrogli
msbrogli previously approved these changes Jun 5, 2023
hathor/feature_activation/feature_service.py Show resolved Hide resolved
@glevco glevco force-pushed the feat/feature-activation/get-endpoint branch from 7c0d2f5 to ecd3d89 Compare June 5, 2023 20:39
@glevco glevco force-pushed the feat/feature-activation/block-ancestor-optimization branch from bb2aa75 to 424a933 Compare June 5, 2023 20:40
@glevco glevco force-pushed the feat/feature-activation/get-endpoint branch from ecd3d89 to f40f182 Compare June 7, 2023 15:58
@glevco glevco force-pushed the feat/feature-activation/block-ancestor-optimization branch from 424a933 to f4aa6df Compare June 7, 2023 16:07
@glevco glevco requested review from jansegre and msbrogli June 7, 2023 16:09
@glevco glevco force-pushed the feat/feature-activation/get-endpoint branch from f40f182 to 35836ff Compare June 9, 2023 20:28
@glevco glevco force-pushed the feat/feature-activation/block-ancestor-optimization branch from f4aa6df to c7639d2 Compare June 9, 2023 20:35
jansegre
jansegre previously approved these changes Jun 13, 2023
@glevco glevco force-pushed the feat/feature-activation/get-endpoint branch 3 times, most recently from f3f3d19 to 659da6d Compare June 14, 2023 14:49
Base automatically changed from feat/feature-activation/get-endpoint to master June 14, 2023 17:31
@glevco glevco dismissed stale reviews from jansegre and msbrogli June 14, 2023 17:31

The base branch was changed.

@glevco glevco force-pushed the feat/feature-activation/block-ancestor-optimization branch from 1c41040 to 1fcc403 Compare June 14, 2023 18:40
@glevco glevco marked this pull request as ready for review June 14, 2023 18:40
@glevco glevco force-pushed the feat/feature-activation/block-ancestor-optimization branch from 1fcc403 to 65d53c2 Compare June 14, 2023 20:10
@glevco glevco force-pushed the feat/feature-activation/block-ancestor-optimization branch 2 times, most recently from 51355e6 to 723b870 Compare June 15, 2023 14:15
jansegre
jansegre previously approved these changes Jun 15, 2023
@glevco glevco force-pushed the feat/feature-activation/block-ancestor-optimization branch from 9c3cea4 to d931b57 Compare June 15, 2023 15:31
msbrogli
msbrogli previously approved these changes Jun 15, 2023
@glevco glevco force-pushed the feat/feature-activation/block-ancestor-optimization branch from d931b57 to 1b1333b Compare June 15, 2023 15:40
@glevco glevco dismissed stale reviews from jansegre and msbrogli via 827f003 June 15, 2023 15:53
@glevco glevco force-pushed the feat/feature-activation/block-ancestor-optimization branch from 1b1333b to 827f003 Compare June 15, 2023 15:53
@msbrogli msbrogli merged commit 827f003 into master Jun 15, 2023
@msbrogli msbrogli deleted the feat/feature-activation/block-ancestor-optimization branch June 15, 2023 15:57
@jansegre jansegre mentioned this pull request Jul 12, 2023
2 tasks
This was referenced Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants