Skip to content

Blockstore: fix last tests using legacy shreds#7308

Merged
alexpyattaev merged 2 commits intoanza-xyz:masterfrom
alexpyattaev:rm_legacy_14
Aug 5, 2025
Merged

Blockstore: fix last tests using legacy shreds#7308
alexpyattaev merged 2 commits intoanza-xyz:masterfrom
alexpyattaev:rm_legacy_14

Conversation

@alexpyattaev
Copy link
Copy Markdown

@alexpyattaev alexpyattaev commented Aug 4, 2025

Problem

Legacy shreds need to go #5982

Summary of Changes

  • Update last two blockstore.rs tests to use merkle shreds

@alexpyattaev alexpyattaev changed the title Rm legacy 14 Blockstore: fix last tests using legacy shreds Aug 4, 2025
@alexpyattaev alexpyattaev marked this pull request as ready for review August 4, 2025 20:26
@alexpyattaev alexpyattaev requested a review from steviez August 4, 2025 20:26
Comment thread ledger/src/blockstore.rs
&mut ProcessShredsStats::default(),
)
.unwrap()
.next()
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

we generate full FEC set as usual but only pick the first shred, which should have the exact index we need.

Comment thread ledger/src/blockstore.rs
ShredFlags::empty(),
0, // reference_tick,
0, // version
fec_set_index + 30,
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

this +30 here seems a bit odd here, not sure what it is trying to achieve.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.8%. Comparing base (3297ff4) to head (2b9c34f).
⚠️ Report is 2655 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #7308     +/-   ##
=========================================
- Coverage    82.8%    82.8%   -0.1%     
=========================================
  Files         801      801             
  Lines      363392   363432     +40     
=========================================
- Hits       301027   300991     -36     
- Misses      62365    62441     +76     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alexpyattaev alexpyattaev merged commit 37eb5cc into anza-xyz:master Aug 5, 2025
41 checks passed
@alexpyattaev alexpyattaev deleted the rm_legacy_14 branch August 5, 2025 08:18
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.

3 participants