Skip to content

chained cleanup continuation; subsequent to #8079#8111

Merged
steviez merged 15 commits intoanza-xyz:masterfrom
puhtaytow:chained-cleanup-continuation-1
Oct 9, 2025
Merged

chained cleanup continuation; subsequent to #8079#8111
steviez merged 15 commits intoanza-xyz:masterfrom
puhtaytow:chained-cleanup-continuation-1

Conversation

@puhtaytow
Copy link
Copy Markdown

@puhtaytow puhtaytow commented Sep 19, 2025

Problem

There is still remaining parts of code that allows for unchained shreds. The unchained shreds are nomore in production.
Cleaning it all at once would result in hard to review PR, that is why taking iterative approach seem to be the way.

This PR is subsequent to #8079

Summary of Changes

  • removed chained switch from params in ledger/shred/merkle/run_make_shreds_from_data

    • callers
      • test_make_shreds_from_data
      • test_make_shreds_from_data_rand
      • test_make_shreds_from_data_paranoid
  • removed option from chained_merkle_root param in ledger/shred/merkle/make_shreds_from_data

  • removed chained switch from params in ledger/shred/merkle/shred_leftover_data

  • removed chained switch from params in ledger/shred/merkle/get_merkle_root both ShredData and ShredCode variants

    • callers
      • ledger/shred/wire/get_signed_data
      • ledger/shred/wire/get_merkle_root
      • ledger/shred/wire/resign_shred
  • removed chained field from ledger/shred/ShredVariant both variants; fixed code around it

@puhtaytow puhtaytow requested a review from a team as a code owner September 19, 2025 15:55
@puhtaytow puhtaytow marked this pull request as draft September 19, 2025 15:55
@puhtaytow puhtaytow force-pushed the chained-cleanup-continuation-1 branch 4 times, most recently from 9767779 to 6cc3c19 Compare September 22, 2025 12:37
@alexpyattaev alexpyattaev added the CI Pull Request is ready to enter CI label Sep 22, 2025
@anza-team anza-team removed the CI Pull Request is ready to enter CI label Sep 22, 2025
@puhtaytow puhtaytow force-pushed the chained-cleanup-continuation-1 branch 4 times, most recently from 0432981 to fad2ef9 Compare September 22, 2025 13:13
Comment thread ledger/src/shred.rs
Comment thread ledger/src/shred.rs Outdated
@alexpyattaev alexpyattaev added the CI Pull Request is ready to enter CI label Sep 22, 2025
@anza-team anza-team removed the CI Pull Request is ready to enter CI label Sep 22, 2025
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 22, 2025

Codecov Report

❌ Patch coverage is 65.87302% with 43 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.2%. Comparing base (3dcf7c5) to head (fced42a).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #8111    +/-   ##
========================================
  Coverage    83.2%    83.2%            
========================================
  Files         846      846            
  Lines      369245   369052   -193     
========================================
- Hits       307350   307209   -141     
+ Misses      61895    61843    -52     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@puhtaytow puhtaytow changed the title wip: chained cleanup continuation 1 aka subsequent to #8079 chained cleanup continuation; subsequent to #8079 Sep 22, 2025
@alexpyattaev alexpyattaev added the CI Pull Request is ready to enter CI label Sep 22, 2025
@anza-team anza-team removed the CI Pull Request is ready to enter CI label Sep 22, 2025
@alexpyattaev alexpyattaev marked this pull request as ready for review September 22, 2025 15:20
Comment thread ledger/src/shred/merkle.rs Outdated
Comment thread ledger/src/shred/merkle.rs Outdated
Comment thread ledger/src/shred/merkle.rs Outdated
@alexpyattaev alexpyattaev added the CI Pull Request is ready to enter CI label Sep 23, 2025
@anza-team anza-team removed the CI Pull Request is ready to enter CI label Sep 23, 2025
alexpyattaev
alexpyattaev previously approved these changes Sep 25, 2025
Copy link
Copy Markdown

@alexpyattaev alexpyattaev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexpyattaev alexpyattaev added the CI Pull Request is ready to enter CI label Sep 26, 2025
@anza-team anza-team removed the CI Pull Request is ready to enter CI label Sep 26, 2025
@puhtaytow
Copy link
Copy Markdown
Author

hey @steviez @AshwinSekar could i please you to have a look when you find a minute? that would be helpful to move forward with the api changes which you suggested the other day 🙏 pretty please

Copy link
Copy Markdown

@steviez steviez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looking good, just a couple nits to keep consistency with the rest of the codebase

Comment thread ledger/tests/shred.rs Outdated
Comment thread ledger/src/shredder.rs Outdated
Comment thread ledger/src/shredder.rs Outdated
Comment thread ledger/src/shred.rs Outdated
Comment thread ledger/src/shred.rs
Comment thread ledger/src/shred/merkle.rs
@puhtaytow puhtaytow force-pushed the chained-cleanup-continuation-1 branch from 8b75f28 to 4ab4936 Compare October 9, 2025 08:20
@steviez steviez added the CI Pull Request is ready to enter CI label Oct 9, 2025
@anza-team anza-team removed the CI Pull Request is ready to enter CI label Oct 9, 2025
Copy link
Copy Markdown

@alexpyattaev alexpyattaev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@steviez steviez merged commit fbc8c81 into anza-xyz:master Oct 9, 2025
44 checks passed
@puhtaytow puhtaytow deleted the chained-cleanup-continuation-1 branch October 12, 2025 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants