Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

EPM and staking events improvement #13026

@gpestana

Description

@gpestana

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 Forcing 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.

Metadata

Metadata

Assignees

Labels

D3-trivial 🧸PR contains trivial changes in a runtime directory that do not require an auditJ0-enhancementAn additional feature request.J2-unconfirmedIssue might be valid, but it’s not yet known.

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions