Skip to content

Commit

Permalink
v2.0: rolls out chained Merkle shreds to ~5% of mainnet slots (backpo…
Browse files Browse the repository at this point in the history
…rt of #4019) (#4130)

rolls out chained Merkle shreds to ~5% of mainnet slots (#4019)

(cherry picked from commit d3fe8f8)

Co-authored-by: behzad nouri <[email protected]>
  • Loading branch information
mergify[bot] and behzadnouri authored Dec 17, 2024
1 parent d3835c1 commit a0d7e26
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 a0d7e26

Please sign in to comment.