Skip to content

Commit

Permalink
lib reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
fgamundi committed Dec 19, 2023
1 parent 0ecd8f9 commit 653d0c4
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions runtime/flashbox/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,29 +511,8 @@ impl pallet_session::Config for Runtime {
type WeightInfo = pallet_session::weights::SubstrateWeight<Runtime>;
}

/// Read full_rotation_period from pallet_configuration
pub struct ConfigurationCollatorRotationSessionPeriod;

impl Get<u32> for ConfigurationCollatorRotationSessionPeriod {
fn get() -> u32 {
Configuration::config().full_rotation_period
}
}

pub struct RemoveInvulnerablesImpl;

// impl RemoveInvulnerables<AccountId> for RemoveInvulnerablesImpl {
// fn remove_invulnerables(
// collators: &mut Vec<AccountId>,
// num_invulnerables: usize,
// ) -> Vec<AccountId> {
// if num_invulnerables == 0 {
// return vec![];
// }

// collators.iter().take(num_invulnerables).cloned().collect()
// }
// }
impl RemoveInvulnerables<AccountId> for RemoveInvulnerablesImpl {
fn remove_invulnerables(
collators: &mut Vec<AccountId>,
Expand Down

0 comments on commit 653d0c4

Please sign in to comment.