From f27308e377f24c341284d480d2caf0b26429d5cb Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Tue, 12 Feb 2019 11:57:20 +1100 Subject: [PATCH] Tidy old comments --- eth2/state_processing/src/epoch_processable.rs | 6 ------ eth2/types/src/beacon_state.rs | 8 -------- 2 files changed, 14 deletions(-) diff --git a/eth2/state_processing/src/epoch_processable.rs b/eth2/state_processing/src/epoch_processable.rs index cf634e52f..3bc0d7cb9 100644 --- a/eth2/state_processing/src/epoch_processable.rs +++ b/eth2/state_processing/src/epoch_processable.rs @@ -582,12 +582,6 @@ impl EpochProcessable for BeaconState { self.process_penalties_and_exits(spec); - /* - let e = self.slot / spec.epoch_length; - self.latest_penalized_balances[((e + 1) % spec.latest_penalized_exit_length).as_usize()] = - self.latest_penalized_balances[(e % spec.latest_penalized_exit_length).as_usize()]; - - */ self.latest_index_roots[(next_epoch.as_usize() + spec.entry_exit_delay as usize) % spec.latest_index_roots_length] = hash_tree_root(get_active_validator_indices( &self.validator_registry, diff --git a/eth2/types/src/beacon_state.rs b/eth2/types/src/beacon_state.rs index 1b959976b..e11b43e80 100644 --- a/eth2/types/src/beacon_state.rs +++ b/eth2/types/src/beacon_state.rs @@ -40,14 +40,6 @@ pub enum AttestationParticipantsError { CommitteesError(CommitteesError), } -/* -#[derive(Debug, PartialEq)] -pub enum SlotProcessingError { - CommitteesError(CommitteesError), - EpochProcessingError(EpochError), -} -*/ - #[derive(Debug, PartialEq)] pub enum AttestationValidationError { IncludedTooEarly,