Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Purge slots greater than new last index (#16071)
Browse files Browse the repository at this point in the history
  • Loading branch information
carllin authored May 26, 2021
1 parent cbce440 commit 52dccc6
Show file tree
Hide file tree
Showing 3 changed files with 351 additions and 51 deletions.
7 changes: 0 additions & 7 deletions core/src/window_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,6 @@ where
}
};
if shred_filter(&shred, last_root) {
// Mark slot as dead if the current shred is on the boundary
// of max shreds per slot. However, let the current shred
// get retransmitted. It'll allow peer nodes to see this shred
// and trigger them to mark the slot as dead.
if shred.index() >= (MAX_DATA_SHREDS_PER_SLOT - 1) as u32 {
let _ = blockstore.set_dead_slot(shred.slot());
}
packet.meta.slot = shred.slot();
packet.meta.seed = shred.seed();
Some((shred, repair_info))
Expand Down
Loading

0 comments on commit 52dccc6

Please sign in to comment.