Skip to content

Commit

Permalink
rolls out chained Merkle shreds to ~5% of mainnet slots (#4019)
Browse files Browse the repository at this point in the history
(cherry picked from commit d3fe8f8)
  • Loading branch information
behzadnouri committed Dec 16, 2024
1 parent d3835c1 commit 6ad6189
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions turbine/src/broadcast_stage/standard_broadcast_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
Expand Down

0 comments on commit 6ad6189

Please sign in to comment.