forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dedups shreds by common-header instead of the entire payload
Shreds in the retransmit stage: * don't have repair nonce (repaired shreds are not retransmitted). * are already resigned by this node as the retransmitter. * have their leader's signature verified. Therefore in order to dedup shreds, it suffices to compare: (signature, slot, shred-index, shred-type) Because ShredCommonHeader already includes all of the above tuple, the rest of the payload can be skipped.
- Loading branch information
1 parent
ee31e31
commit c0f556d
Showing
4 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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