This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
EPM and staking events improvement #13026
Labels
D3-trivial 🧸
PR contains trivial changes in a runtime directory that do not require an audit
J0-enhancement
An additional feature request.
J2-unconfirmed
Issue might be valid, but it’s not yet known.
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 newForcing
mode 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.
The text was updated successfully, but these errors were encountered: