Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed Jan 13, 2025
1 parent 7d05f85 commit 68e489c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions substrate/frame/staking/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1141,13 +1141,8 @@ mod benchmarks {
fn chill_inactive_validator(
l: Linear<2, { ChillInactiveValidatorThreshold::<T>::get() }>,
) -> Result<(), BenchmarkError> {
let (stash, _) = create_validator_with_nominators::<T>(
0,
0,
false,
true,
RewardDestination::Staked,
)?;
let (stash, _) =
create_validator_with_nominators::<T>(0, 0, false, true, RewardDestination::Staked)?;
assert!(T::VoterList::contains(&stash));

Staking::<T>::set_staking_configs(
Expand Down
1 change: 0 additions & 1 deletion substrate/frame/staking/src/pallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2336,7 +2336,6 @@ pub mod pallet {
proof: BoundedVec<EraIndex, T::HistoryDepth>,
) -> DispatchResult {
ensure_signed(origin)?;

ensure!(Validators::<T>::contains_key(&stash), Error::<T>::NotValidator);

let threshold = ChillInactiveValidatorThreshold::<T>::get();
Expand Down

0 comments on commit 68e489c

Please sign in to comment.