Skip to content

refactor: move can_validate_full method [part 2/8]#1153

Merged
glevco merged 1 commit intomasterfrom
refactor/move-can-validate-full
Oct 18, 2024
Merged

refactor: move can_validate_full method [part 2/8]#1153
glevco merged 1 commit intomasterfrom
refactor/move-can-validate-full

Conversation

@glevco
Copy link
Contributor

@glevco glevco commented Oct 10, 2024

Depends on #1151

Motivation

As part of the P2P Multiprocess project, move a BaseTransaction method that is used by the sync to the storage.

Acceptance Criteria

  • Move can_validate_full method from BaseTransaction to TransactionStorage.
  • Remove similar and unused BaseTransaction.is_ready_for_validation method.
  • No changes in behavior.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@glevco glevco self-assigned this Oct 10, 2024
@glevco glevco marked this pull request as ready for review October 10, 2024 15:14
@glevco glevco force-pushed the refactor/move-can-validate-full branch from 37477f3 to b6430fe Compare October 10, 2024 15:17
@codecov
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 84.42%. Comparing base (026cb7b) to head (7dd0b6d).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
hathor/transaction/storage/transaction_storage.py 76.47% 2 Missing and 2 partials ⚠️
hathor/manager.py 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1153      +/-   ##
==========================================
- Coverage   84.45%   84.42%   -0.04%     
==========================================
  Files         317      317              
  Lines       24368    24357      -11     
  Branches     3708     3705       -3     
==========================================
- Hits        20581    20564      -17     
  Misses       3074     3074              
- Partials      713      719       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@glevco glevco changed the title refactor: move can_validate_full method refactor: move can_validate_full method [part 2/5] Oct 10, 2024
@glevco glevco force-pushed the refactor/p2p/simplify-factory branch from 48a4de4 to c85752d Compare October 14, 2024 15:09
Base automatically changed from refactor/p2p/simplify-factory to master October 14, 2024 19:10
@glevco glevco force-pushed the refactor/move-can-validate-full branch from b6430fe to 409f3f3 Compare October 14, 2024 19:12
@github-actions
Copy link

github-actions bot commented Oct 14, 2024

🐰 Bencher Report

Branchrefactor/move-can-validate-full
Testbedubuntu-22.04
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Lower Boundary
nanoseconds (ns)
(Limit %)
Upper Boundary
nanoseconds (ns)
(Limit %)
sync-v2 (up to 20000 blocks)📈 view plot
🚷 view threshold
101,469,293,016.44
(-0.39%)
91,681,483,508.09
(90.35%)
112,055,146,509.89
(90.55%)
🐰 View full continuous benchmarking report in Bencher

@glevco glevco changed the title refactor: move can_validate_full method [part 2/5] refactor: move can_validate_full method [part 2/7] Oct 15, 2024
@glevco glevco changed the title refactor: move can_validate_full method [part 2/7] refactor: move can_validate_full method [part 2/8] Oct 15, 2024
@glevco glevco force-pushed the refactor/move-can-validate-full branch from 409f3f3 to 8e980c1 Compare October 17, 2024 13:53
@glevco glevco force-pushed the refactor/move-can-validate-full branch from 8e980c1 to 7dd0b6d Compare October 17, 2024 18:01
@glevco glevco merged commit d569b9a into master Oct 18, 2024
@glevco glevco deleted the refactor/move-can-validate-full branch October 18, 2024 19:14
@jansegre jansegre mentioned this pull request Nov 21, 2024
2 tasks
@jansegre jansegre mentioned this pull request Dec 11, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants