Skip to content

Commit

Permalink
v2.0: rolls out chained Merkle shreds to ~5% of testnet (backport of #…
Browse files Browse the repository at this point in the history
…2389) (#2407)

rolls out chained Merkle shreds to ~5% of testnet (#2389)

(cherry picked from commit a60fbc2)

Co-authored-by: behzad nouri <[email protected]>
  • Loading branch information
mergify[bot] and behzadnouri authored Aug 2, 2024
1 parent 5b8a229 commit 962085c
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 962085c

Please sign in to comment.