From 6ad6189e1a9d840e9d6bd5a5cd99715529a1f44a Mon Sep 17 00:00:00 2001 From: behzad nouri Date: Sun, 15 Dec 2024 23:58:52 +0000 Subject: [PATCH] rolls out chained Merkle shreds to ~5% of mainnet slots (#4019) (cherry picked from commit d3fe8f8a01725e02c9ca594ffe8b1461f10b0e9a) --- turbine/src/broadcast_stage/standard_broadcast_run.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/turbine/src/broadcast_stage/standard_broadcast_run.rs b/turbine/src/broadcast_stage/standard_broadcast_run.rs index 22e000e2af0092..6ef11ff3cc408c 100644 --- a/turbine/src/broadcast_stage/standard_broadcast_run.rs +++ b/turbine/src/broadcast_stage/standard_broadcast_run.rs @@ -506,11 +506,12 @@ impl BroadcastRun for StandardBroadcastRun { } } -fn should_chain_merkle_shreds(_slot: Slot, cluster_type: ClusterType) -> bool { +fn should_chain_merkle_shreds(slot: Slot, cluster_type: ClusterType) -> bool { match cluster_type { ClusterType::Development => true, ClusterType::Devnet => true, - ClusterType::MainnetBeta => false, + // Roll out chained Merkle shreds to ~5% of mainnet slots. + ClusterType::MainnetBeta => slot % 19 == 1, ClusterType::Testnet => true, } }