pub type ElectionProviderMultiPhaseEvent = ElectionProviderMultiPhaseEvent;
Aliased Type§
pub enum ElectionProviderMultiPhaseEvent {
SolutionStored {
compute: ElectionCompute,
origin: Option<AccountId>,
prev_ejected: bool,
},
ElectionFinalized {
compute: ElectionCompute,
score: ElectionScore,
},
ElectionFailed,
Rewarded {
account: AccountId,
value: u128,
},
Slashed {
account: AccountId,
value: u128,
},
PhaseTransitioned {
from: Phase<u32>,
to: Phase<u32>,
round: u32,
},
}
Variants§
SolutionStored
A solution was stored with the given compute.
The origin
indicates the origin of the solution. If origin
is Some(AccountId)
,
the stored solution was submited in the signed phase by a miner with the AccountId
.
Otherwise, the solution was stored either during the unsigned phase or by
T::ForceOrigin
. The bool
is true
when a previous solution was ejected to make
room for this one.
ElectionFinalized
The election has been finalized, with the given computation and score.
ElectionFailed
An election failed.
Not much can be said about which computes failed in the process.
Rewarded
An account has been rewarded for their signed submission being finalized.
Slashed
An account has been slashed for submitting an invalid signed submission.
PhaseTransitioned
There was a phase transition in a given round.