From d067deeb5bf57064dc0c9da067e81fec5b13fbca Mon Sep 17 00:00:00 2001 From: behzad nouri Date: Fri, 27 Jan 2023 14:05:44 -0500 Subject: [PATCH] feature gates merkle shreds on all clusters --- core/src/shred_fetch_stage.rs | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/core/src/shred_fetch_stage.rs b/core/src/shred_fetch_stage.rs index 8d77949f0b1d12..0c778cd6bd5186 100644 --- a/core/src/shred_fetch_stage.rs +++ b/core/src/shred_fetch_stage.rs @@ -14,7 +14,6 @@ use { solana_sdk::{ clock::{Slot, DEFAULT_MS_PER_SLOT}, feature_set, - genesis_config::ClusterType, }, solana_streamer::streamer::{self, PacketBatchReceiver, StreamerReceiveStats}, std::{ @@ -265,17 +264,15 @@ fn should_discard_packet( #[must_use] fn should_drop_merkle_shreds(shred_slot: Slot, root_bank: &Bank) -> bool { - root_bank.cluster_type() == ClusterType::Testnet - && check_feature_activation( - &feature_set::drop_merkle_shreds::id(), - shred_slot, - root_bank, - ) - && !check_feature_activation( - &feature_set::keep_merkle_shreds::id(), - shred_slot, - root_bank, - ) + check_feature_activation( + &feature_set::drop_merkle_shreds::id(), + shred_slot, + root_bank, + ) && !check_feature_activation( + &feature_set::keep_merkle_shreds::id(), + shred_slot, + root_bank, + ) } #[cfg(test)]