Skip to content

Commit

Permalink
uses Merkle shreds in broadcast duplicates (solana-labs#35115)
Browse files Browse the repository at this point in the history
The  commit migrates away from legacy shreds in duplicate shreds tests.
  • Loading branch information
behzadnouri authored Feb 7, 2024
1 parent 56391f6 commit 7a95e4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions local-cluster/tests/local_cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5608,11 +5608,11 @@ fn test_invalid_forks_persisted_on_restart() {
.entries_to_shreds(
&majority_keypair,
&entries,
true, // is_full_slot
None, // chained_merkle_root
0, // next_shred_index,
0, // next_code_index
false, // merkle_variant
true, // is_full_slot
None, // chained_merkle_root
0, // next_shred_index,
0, // next_code_index
true, // merkle_variant
&ReedSolomonCache::default(),
&mut ProcessShredsStats::default(),
)
Expand Down
6 changes: 3 additions & 3 deletions turbine/src/broadcast_stage/broadcast_duplicates_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl BroadcastRun for BroadcastDuplicatesRun {
None, // chained_merkle_root
self.next_shred_index,
self.next_code_index,
false, // merkle_variant
true, // merkle_variant
&self.reed_solomon_cache,
&mut ProcessShredsStats::default(),
);
Expand All @@ -194,7 +194,7 @@ impl BroadcastRun for BroadcastDuplicatesRun {
None, // chained_merkle_root
self.next_shred_index,
self.next_code_index,
false, // merkle_variant
true, // merkle_variant
&self.reed_solomon_cache,
&mut ProcessShredsStats::default(),
);
Expand All @@ -208,7 +208,7 @@ impl BroadcastRun for BroadcastDuplicatesRun {
None, // chained_merkle_root
self.next_shred_index,
self.next_code_index,
false, // merkle_variant
true, // merkle_variant
&self.reed_solomon_cache,
&mut ProcessShredsStats::default(),
);
Expand Down

0 comments on commit 7a95e4f

Please sign in to comment.