diff --git a/account-decoder/src/parse_sysvar.rs b/account-decoder/src/parse_sysvar.rs index 3fda8e8560c623..35746949c7f9ef 100644 --- a/account-decoder/src/parse_sysvar.rs +++ b/account-decoder/src/parse_sysvar.rs @@ -9,7 +9,6 @@ use { bv::BitVec, solana_sdk::{ clock::{Clock, Epoch, Slot, UnixTimestamp}, - epoch_rewards_partition_data::EpochRewardsPartitionDataVersion, epoch_schedule::EpochSchedule, pubkey::Pubkey, rent::Rent, @@ -97,24 +96,7 @@ pub fn parse_sysvar(data: &[u8], pubkey: &Pubkey) -> Result(data) - { - let EpochRewardsPartitionDataVersion::V0(partition_data) = - epoch_rewards_partition_data; - Some(SysvarAccountType::EpochRewardsPartitionData( - UiEpochRewardsPartitionData { - version: 0, - num_partitions: partition_data.num_partitions as u64, - parent_blockhash: partition_data.parent_blockhash.to_string(), - }, - )) - } else { - None - } + None } }; parsed_account.ok_or(ParseAccountError::AccountNotParsable( @@ -138,7 +120,6 @@ pub enum SysvarAccountType { StakeHistory(Vec), LastRestartSlot(UiLastRestartSlot), EpochRewards(EpochRewards), - EpochRewardsPartitionData(UiEpochRewardsPartitionData), } #[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Default)] @@ -258,14 +239,6 @@ pub struct UiLastRestartSlot { pub last_restart_slot: Slot, } -#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Default)] -#[serde(rename_all = "camelCase")] -pub struct UiEpochRewardsPartitionData { - pub version: u32, - pub num_partitions: u64, - pub parent_blockhash: String, -} - #[cfg(test)] mod test { #[allow(deprecated)]