Skip to content

Commit

Permalink
v1.18: uses Merkle shreds in broadcast duplicates (backport of solana…
Browse files Browse the repository at this point in the history
…-labs#35115) (solana-labs#35290)

uses Merkle shreds in broadcast duplicates (solana-labs#35115)

The  commit migrates away from legacy shreds in duplicate shreds tests.

(cherry picked from commit 7a95e4f)

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
  • Loading branch information
mergify[bot] and behzadnouri authored Feb 22, 2024
1 parent 97f224a commit b369831
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 @@ -5601,11 +5601,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 b369831

Please sign in to comment.