Skip to content

refactor: update tx parent generation#1447

Closed
glevco wants to merge 1 commit intomasterfrom
refactor/tx-parents-2
Closed

refactor: update tx parent generation#1447
glevco wants to merge 1 commit intomasterfrom
refactor/tx-parents-2

Conversation

@glevco
Copy link
Contributor

@glevco glevco commented Oct 7, 2025

Motivation

What was the motivation for the changes in this PR?

Acceptance Criteria

  • Refactor generate_parent_txs so it takes unconfirmed txs into account.
  • Refactor ParentTxs:
    • Remove get_all_tips() method, it was only used in a single test.
  • Add new TransactionStorage.get_transaction_strict().

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 closed this Oct 7, 2025
@github-project-automation github-project-automation bot moved this from Todo to Waiting to be deployed in Hathor Network Oct 7, 2025
@glevco glevco deleted the refactor/tx-parents-2 branch October 7, 2025 22:25
@glevco
Copy link
Contributor Author

glevco commented Oct 7, 2025

Moved to #1448

@glevco glevco removed this from Hathor Network Oct 7, 2025
@github-actions
Copy link

github-actions bot commented Oct 7, 2025

🐰 Bencher Report

Branchrefactor/tx-parents-2
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.97 m
(+14.62%)Baseline: 1.72 m
1.55 m
(78.52%)
2.06 m
(95.52%)
🐰 View full continuous benchmarking report in Bencher

@codecov
Copy link

codecov bot commented Oct 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.89%. Comparing base (49a9ac1) to head (6338141).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1447      +/-   ##
==========================================
- Coverage   85.96%   85.89%   -0.08%     
==========================================
  Files         434      434              
  Lines       33673    33693      +20     
  Branches     5280     5287       +7     
==========================================
- Hits        28948    28939       -9     
- Misses       3684     3704      +20     
- Partials     1041     1050       +9     

☔ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant