Skip to content

Commit

Permalink
rolls out chained Merkle shreds to ~5% of testnet (#2389)
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadnouri authored Aug 2, 2024
1 parent 3f3f48f commit a60fbc2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions turbine/src/broadcast_stage/standard_broadcast_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,14 @@ impl BroadcastRun for StandardBroadcastRun {
}
}

fn should_chain_merkle_shreds(_slot: Slot, cluster_type: ClusterType) -> bool {
cluster_type == ClusterType::Development
fn should_chain_merkle_shreds(slot: Slot, cluster_type: ClusterType) -> bool {
match cluster_type {
ClusterType::Development => true,
ClusterType::Devnet => false,
ClusterType::MainnetBeta => false,
// Roll out chained Merkle shreds to ~5% of testnet.
ClusterType::Testnet => slot % 19 == 1,
}
}

#[cfg(test)]
Expand Down

0 comments on commit a60fbc2

Please sign in to comment.