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
  • Loading branch information
behzadnouri authored Dec 15, 2024
1 parent 141db09 commit d3fe8f8
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 @@ -503,11 +503,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 d3fe8f8

Please sign in to comment.