forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reworks args needed for erasure recovery when inserting shreds into b…
…lockstore When inserting own shreds during leader slots, we shouldn't try to recover shreds. If shreds are not to be recovered we don't need the retransmit channel either. Otherwise, if we are inserting shreds from another leader, we need to try erasure recovery and retransmit recovered shreds. So Reed-Solomon cache and retransmit-sender should only be present together. The commit makes this explicit by adding should_recover_shreds: Option<( &ReedSolomonCache, &Sender<Vec</*shred:*/ Vec<u8>>>, // retransmit_sender )>, argument to Blockstore::do_insert_shreds.
- Loading branch information
1 parent
baf53a4
commit 59a3b2f
Showing
2 changed files
with
43 additions
and
26 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