pub fn manual_slash<T: Config>(
validator_stash: T::AccountId,
era: EraIndex,
slash_fraction: Perbill,
)
Expand description
This function allows governance to manually slash a validator and is a fallback mechanism.
The dispatch origin must be T::AdminOrigin
.
§Parameters
validator_stash
- The stash account of the validator to slash.era
- The era in which the validator was in the active set.slash_fraction
- The percentage of the stake to slash, expressed as a Perbill.
§Behavior
The slash will be applied using the standard slashing mechanics, respecting the
configured SlashDeferDuration
.
This means:
- If the validator was already slashed by a higher percentage for the same era, this slash will have no additional effect.
- If the validator was previously slashed by a lower percentage, only the difference will be applied.
- The slash will be deferred by
SlashDeferDuration
eras before being enacted.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::manual_slash
.