pub trait PunishValidators {
fn punish_for_invalid(
session: SessionIndex,
validators: impl IntoIterator<Item = ValidatorIndex>
);
fn punish_against_valid(
session: SessionIndex,
validators: impl IntoIterator<Item = ValidatorIndex>
);
fn punish_inconclusive(
session: SessionIndex,
validators: impl IntoIterator<Item = ValidatorIndex>
);
}
Expand description
Punishment hooks for disputes.
Required Methods§
sourcefn punish_for_invalid(
session: SessionIndex,
validators: impl IntoIterator<Item = ValidatorIndex>
)
fn punish_for_invalid(
session: SessionIndex,
validators: impl IntoIterator<Item = ValidatorIndex>
)
Punish a series of validators who were for an invalid parablock. This is expected to be a major punishment.
sourcefn punish_against_valid(
session: SessionIndex,
validators: impl IntoIterator<Item = ValidatorIndex>
)
fn punish_against_valid(
session: SessionIndex,
validators: impl IntoIterator<Item = ValidatorIndex>
)
Punish a series of validators who were against a valid parablock. This is expected to be a minor punishment.
sourcefn punish_inconclusive(
session: SessionIndex,
validators: impl IntoIterator<Item = ValidatorIndex>
)
fn punish_inconclusive(
session: SessionIndex,
validators: impl IntoIterator<Item = ValidatorIndex>
)
Punish a series of validators who were part of a dispute which never concluded. This is expected to be a minor punishment.