mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 19:21:03 +00:00
Remove implicit approval chilling upon slash. (#12420)
* don't read slashing spans when taking election snapshot * update cargo.toml * bring back remote test * fix merge stuff * fix npos-voters function sig * remove as much redundant diff as you can * Update frame/staking/src/pallet/mod.rs Co-authored-by: Andronik <write@reusable.software> * fix * Update frame/staking/src/pallet/impls.rs * update lock * fix all tests * review comments * fmt * fix offence bench * clippy * ".git/.scripts/bench-bot.sh" pallet dev pallet_staking Co-authored-by: Andronik <write@reusable.software> Co-authored-by: Ankan <ankan.anurag@gmail.com> Co-authored-by: command-bot <>
This commit is contained in:
@@ -2293,6 +2293,8 @@ mod tests {
|
||||
assert_eq!(MultiPhase::elect().unwrap_err(), ElectionError::Fallback("NoFallback."));
|
||||
// phase is now emergency.
|
||||
assert_eq!(MultiPhase::current_phase(), Phase::Emergency);
|
||||
// snapshot is still there until election finalizes.
|
||||
assert!(MultiPhase::snapshot().is_some());
|
||||
|
||||
assert_eq!(
|
||||
multi_phase_events(),
|
||||
@@ -2318,6 +2320,7 @@ mod tests {
|
||||
// phase is now emergency.
|
||||
assert_eq!(MultiPhase::current_phase(), Phase::Emergency);
|
||||
assert!(MultiPhase::queued_solution().is_none());
|
||||
assert!(MultiPhase::snapshot().is_some());
|
||||
|
||||
// no single account can trigger this
|
||||
assert_noop!(
|
||||
|
||||
Reference in New Issue
Block a user