Adds integration test for slashed/chilled validator with subsequent validation intention (#13717)

* Adds integration test for slashed/chilled validator with subsequent validation intention

* Removes unecessary comment

* Update frame/election-provider-multi-phase/test-staking-e2e/src/lib.rs

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* Update frame/election-provider-multi-phase/test-staking-e2e/src/lib.rs

Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* Addresses PR review comments

* Fixes after conflict resolved

---------

Co-authored-by: parity-processbot <>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
This commit is contained in:
Gonçalo Pestana
2023-05-15 14:04:29 +02:00
committed by GitHub
parent 0b0bef5cb1
commit 5854ef0fd1
2 changed files with 81 additions and 3 deletions
@@ -124,11 +124,11 @@ impl pallet_balances::Config for Runtime {
type DustRemoval = ();
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type WeightInfo = ();
type MaxHolds = ConstU32<1>;
type MaxFreezes = traits::ConstU32<1>;
type HoldIdentifier = ();
type FreezeIdentifier = ();
type MaxHolds = traits::ConstU32<1>;
type MaxFreezes = traits::ConstU32<1>;
type WeightInfo = ();
}
impl pallet_timestamp::Config for Runtime {
@@ -781,3 +781,11 @@ pub(crate) fn set_minimum_election_score(
.map(|_| ())
.map_err(|_| ())
}
pub(crate) fn staking_events() -> Vec<pallet_staking::Event<Runtime>> {
System::events()
.into_iter()
.map(|r| r.event)
.filter_map(|e| if let RuntimeEvent::Staking(inner) = e { Some(inner) } else { None })
.collect::<Vec<_>>()
}