Skip to content

fix: update tx parents generation#1448

Merged
msbrogli merged 1 commit intomasterfrom
fix/tx-parents
Oct 9, 2025
Merged

fix: update tx parents generation#1448
msbrogli merged 1 commit intomasterfrom
fix/tx-parents

Conversation

@glevco
Copy link
Contributor

@glevco glevco commented Oct 7, 2025

Motivation

Fix an issue where generate_parent_txs could generate tx parents without including unconfirmed txs in must_include.

Acceptance Criteria

  • Fix generate_parent_txs so it takes unconfirmed txs into account.
  • Refactor ParentTxs: improve typing, simplify construction, and remove get_all_tips() method (it was only used in a single test).
  • Add new TransactionStorage.get_tx().

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 7, 2025
@glevco glevco moved this from Todo to In Progress (WIP) in Hathor Network Oct 7, 2025
@glevco glevco moved this from In Progress (WIP) to In Progress (Done) in Hathor Network Oct 7, 2025
jansegre
jansegre previously approved these changes Oct 7, 2025
@github-actions
Copy link

github-actions bot commented Oct 7, 2025

🐰 Bencher Report

Branchfix/tx-parents
Testbedubuntu-22.04
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
minutes (m)
(Result Δ%)
Lower Boundary
minutes (m)
(Limit %)
Upper Boundary
minutes (m)
(Limit %)
sync-v2 (up to 20000 blocks)📈 view plot
🚷 view threshold
1.95 m
(+12.79%)Baseline: 1.72 m
1.55 m
(79.80%)
2.07 m
(93.99%)
🐰 View full continuous benchmarking report in Bencher

@glevco glevco moved this from In Progress (Done) to In Review (WIP) in Hathor Network Oct 7, 2025
@codecov
Copy link

codecov bot commented Oct 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.95%. Comparing base (d708ede) to head (3f600b3).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1448   +/-   ##
=======================================
  Coverage   85.94%   85.95%           
=======================================
  Files         434      434           
  Lines       33675    33695   +20     
  Branches     5278     5285    +7     
=======================================
+ Hits        28943    28962   +19     
- Misses       3686     3688    +2     
+ Partials     1046     1045    -1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jansegre jansegre mentioned this pull request Oct 8, 2025
2 tasks
@glevco glevco force-pushed the fix/tx-parents branch 2 times, most recently from 7c28e4a to d49e65c Compare October 9, 2025 19:37
msbrogli
msbrogli previously approved these changes Oct 9, 2025
msbrogli
msbrogli previously approved these changes Oct 9, 2025
@jansegre jansegre moved this from In Review (WIP) to In Review (Done) in Hathor Network Oct 9, 2025
jansegre
jansegre previously approved these changes Oct 9, 2025
@github-project-automation github-project-automation bot moved this from In Review (Done) to In Review (WIP) in Hathor Network Oct 9, 2025
@glevco glevco removed the status in Hathor Network Oct 9, 2025
@glevco glevco moved this to In Review (Done) in Hathor Network Oct 9, 2025
@glevco glevco force-pushed the fix/tx-parents branch 2 times, most recently from 221773c to 3c05762 Compare October 9, 2025 21:20
@msbrogli msbrogli merged commit 6ea3dc1 into master Oct 9, 2025
6 of 10 checks passed
@msbrogli msbrogli deleted the fix/tx-parents branch October 9, 2025 21:33
@github-project-automation github-project-automation bot moved this from In Review (Done) to Waiting to be deployed in Hathor Network Oct 9, 2025
@jansegre jansegre moved this from Waiting to be deployed to Done in Hathor Network Oct 15, 2025
@jansegre jansegre mentioned this pull request Oct 16, 2025
2 tasks
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