Skip to content

shred: reject the block when slot entries fail to deserialize#545

Merged
mjain-jump merged 1 commit into
firedancer-io:agave-v4.1.0-beta.3from
yufeng-jump:yufzhou/shred-entries-error-reject
Jun 10, 2026
Merged

shred: reject the block when slot entries fail to deserialize#545
mjain-jump merged 1 commit into
firedancer-io:agave-v4.1.0-beta.3from
yufeng-jump:yufzhou/shred-entries-error-reject

Conversation

@yufeng-jump

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 10, 2026 23:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates shred parsing to treat blockstore entry retrieval errors as a rejection instead of silently defaulting to empty entries.

Changes:

  • Replaces unwrap_or fallback with explicit match on get_slot_entries_with_shred_info
  • Sets effects.block_parse_result to RejectedInvalidHeader when an error occurs and continues processing remaining slots

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/shred.rs
Comment on lines +255 to +262
let (entries, _num_shreds, is_full) =
match blockstore.get_slot_entries_with_shred_info(slot, 0, false) {
Ok(slot_entries) => slot_entries,
Err(_) => {
effects.block_parse_result = BlockParseResult::RejectedInvalidHeader as i32;
continue;
}
};
Comment thread src/shred.rs
Comment on lines +258 to +261
Err(_) => {
effects.block_parse_result = BlockParseResult::RejectedInvalidHeader as i32;
continue;
}
@mjain-jump mjain-jump merged commit 89e0646 into firedancer-io:agave-v4.1.0-beta.3 Jun 10, 2026
4 checks passed
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