From a0d7e2643dd2ba01cb2afe6ff6647f9cee667958 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 22:43:25 +0000 Subject: [PATCH] v2.0: rolls out chained Merkle shreds to ~5% of mainnet slots (backport of #4019) (#4130) rolls out chained Merkle shreds to ~5% of mainnet slots (#4019) (cherry picked from commit d3fe8f8a01725e02c9ca594ffe8b1461f10b0e9a) Co-authored-by: behzad nouri --- 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, } }