Skip to content

Commit

Permalink
v2.1: 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) (#4131)

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

(cherry picked from commit d3fe8f8)

# Conflicts:
#	turbine/src/broadcast_stage/standard_broadcast_run.rs

* resolves merge conflicts

---------

Co-authored-by: behzad nouri <behzadnouri@gmail.com>
  • Loading branch information
mergify[bot] and behzadnouri authored Dec 18, 2024
1 parent 8a652ac commit 1e91378
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions turbine/src/broadcast_stage/standard_broadcast_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,12 +503,13 @@ 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,
ClusterType::Testnet => 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 1e91378

Please sign in to comment.