forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removes check for LAST_SHRED_IN_SLOT in Shredder::deshred (#4580)
LAST_SHRED_IN_SLOT already implies DATA_COMPLETE_SHRED: https://github.com/anza-xyz/agave/blob/e86d961cf/ledger/src/shred.rs#L125-L126 and we sanity check this as well: https://github.com/anza-xyz/agave/blob/e86d961cf/ledger/src/shred/shred_data.rs#L187-L191 So checking only for DATA_COMPLETE_SHRED in Shredder::deshred is sufficient.
- Loading branch information
1 parent
e86d961
commit bb4ce5a
Showing
2 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters