pub fn cancel_deferred_slash<T: Config>(
era: EraIndex,
validator_slashes: Vec<(T::AccountId, Perbill)>,
)
Expand description
Cancels scheduled slashes for a given era before they are applied.
This function allows T::AdminOrigin
to cancel pending slashes for specified validators
in a given era. The cancelled slashes are stored and will be checked when applying
slashes.
§Parameters
era
: The staking era for which slashes should be cancelled.validator_slashes
: A list of validator stash accounts and their slash fractions to be cancelled.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::cancel_deferred_slash
.