Skip to content

Commit

Permalink
rolls out merkle shreds to ~5% of mainnet slots
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadnouri committed Jun 29, 2023
1 parent b722ce4 commit c2326af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions turbine/src/broadcast_stage/standard_broadcast_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,11 @@ impl BroadcastRun for StandardBroadcastRun {
}
}

fn should_use_merkle_variant(_: Slot, cluster_type: ClusterType, shred_version: u16) -> bool {
cluster_type == ClusterType::Testnet && shred_version == 28353
fn should_use_merkle_variant(slot: Slot, cluster_type: ClusterType, shred_version: u16) -> bool {
match cluster_type {
ClusterType::Testnet => shred_version == 28353,
_ => (slot % 19) == 1,
}
}

#[cfg(test)]
Expand Down

0 comments on commit c2326af

Please sign in to comment.