This repository was archived by the owner on Nov 15, 2023. It is now read-only.
  
  
  
  
  
Description
A few suggestions to make it easier to trace runtime events related to the election provider and staking pallets:
EPM pallet
- SolutionStored { compute, prev_ejected, origin, Option<T::AccountId> }(modified).
- PhaseTransitioned { from: Phase, to: Phase, round: u32}: All the phase transition events (- Event::SignedPhaseStarted,- Event::UnsighedPhaseStarted) are replaced by a state transition event that keep the previous and next phase. This will also allow us to easily start emitting when the emergency and phase off start and all new future phases that we may need.
Staking pallet:
- ForceEra { mode: Forcing }: signals that a new- Forcingmode was set.
In addition to refactoring and adding new events, this PR also adds helper functions to transition EPM phases and set a new force era mode.