rolls out merkle shreds to ~5% of mainnet slots (#32337)

This commit is contained in:
behzad nouri 2023-06-30 15:17:56 +00:00 committed by GitHub
parent fccc1c75f3
commit 43a5ed3139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -501,8 +501,11 @@ impl BroadcastRun for StandardBroadcastRun {
}
}
fn should_use_merkle_variant(_: Slot, cluster_type: ClusterType, shred_version: u16) -> bool {
cluster_type == ClusterType::Testnet && shred_version == 28353
fn should_use_merkle_variant(slot: Slot, cluster_type: ClusterType, shred_version: u16) -> bool {
match cluster_type {
ClusterType::Testnet => shred_version == 28353,
_ => (slot % 19) == 1,
}
}
#[cfg(test)]