Skip to content

feat: discard shreds that unexpectedly specify data complete#8099

Merged
ksn6 merged 8 commits into
anza-xyz:masterfrom
ksn6:discard-shreds-with-invalid-data-complete-flag
Oct 9, 2025
Merged

feat: discard shreds that unexpectedly specify data complete#8099
ksn6 merged 8 commits into
anza-xyz:masterfrom
ksn6:discard-shreds-with-invalid-data-complete-flag

Conversation

@ksn6
Copy link
Copy Markdown

@ksn6 ksn6 commented Sep 18, 2025

Summary

Currently, the DATA_COMPLETE_SHRED flag can theoretically be set on any data shred within an FEC set, though in practice it marks FEC set boundaries.

By enforcing DATA_COMPLETE_SHRED placement only on the last data shred in each FEC set, validators can detect BlockComponent boundaries during online shred ingestion, necessary for Alpenglow Fast Leader Handover.

This PR addresses solana-foundation/solana-improvement-documents#337.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 18, 2025

Codecov Report

❌ Patch coverage is 84.72222% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.2%. Comparing base (3dcf7c5) to head (cab389e).

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

@ksn6 ksn6 force-pushed the discard-shreds-with-invalid-data-complete-flag branch from 749c17e to 3275259 Compare September 21, 2025 23:27
Comment thread ledger/src/shred.rs Outdated
@ksn6 ksn6 force-pushed the discard-shreds-with-invalid-data-complete-flag branch from cfae172 to a597eed Compare September 23, 2025 02:48
@ksn6 ksn6 force-pushed the discard-shreds-with-invalid-data-complete-flag branch from a597eed to cfff247 Compare October 6, 2025 22:39
Comment thread feature-set/src/lib.rs
Comment thread ledger/src/shred.rs Outdated
Comment thread ledger/src/shred.rs Outdated
@ksn6 ksn6 force-pushed the discard-shreds-with-invalid-data-complete-flag branch from 92a52ac to 9b621b4 Compare October 8, 2025 09:59
Comment thread feature-set/src/lib.rs
/*************** ADD NEW FEATURES HERE ***************/
(
discard_unexpected_data_complete_shreds::id(),
"SIMD-0337: Markers for Alpenglow Fast Leader Handover, DATA_COMPLETE_SHRED placement \
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.

I'll introduce the markers themselves in a separate PR, hence the qualification here. Let me know if this comment is too long.

@ksn6 ksn6 force-pushed the discard-shreds-with-invalid-data-complete-flag branch from e7c79a8 to cab389e Compare October 9, 2025 08:49
@ksn6 ksn6 merged commit aeb8232 into anza-xyz:master Oct 9, 2025
43 checks passed
@ksn6 ksn6 deleted the discard-shreds-with-invalid-data-complete-flag branch October 9, 2025 14:07
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