BfcOffences
Description
The Bifrost Node tracks offences of validators and penalizes them to maintain network stability. The related implementation is defined in the pallet_bfc_offences module which is a central module implemented to handle offences reported through multiple modules and is responsible for counting offences and processing validator slashing.
Extrinsics
set_offence_expiration(new: SessionIndex)
interface:
api.tx.bfcOffences.setOffenceExpirationsummary: Sets a new offence expiration for all validators. It must be specified in sessions. The origin should be the root.
set_max_offence_count(new: OffenceCount)
interface:
api.tx.bfcOffences.setMaxOffenceCountsummary: Sets a new maximum offence count for all validators. The origin should be the root.
set_offence_activation(is_active: bool)
interface:
api.tx.bfcOffences.setOffenceActivationsummary: Sets the activation of validator offence management. The origin should be the root.
set_slash_activation(is_active: bool)
interface:
api.tx.bfcOffences.setOffenceActivationsummary: Sets the activation of validator slashing. The origin should be the root.
Storage Values
ValidatorOffences(AccountId): Option<ValidatorOffenceInfo<BalanceOf>>
interface:
api.query.bfcOffences.validatorOffencessummary: The current offence state of a specific validator.
OffenceExpirationInSessions(): SessionIndex
interface:
api.query.bfcOffences.offenceExpirationInSessionssummary: The current offence expiration in sessions.
MaximumOffenceCount(): OffenceCount
interface:
api.query.bfcOffences.maximumOffenceCountsummary: The current maximum offence count for all validators.
IsOffenceActive(): bool
interface:
api.query.bfcOffences.isOffenceActivesummary: The current activation of validator offence management.
IsSlashActive(): bool
interface:
api.query.bfcOffences.isSlashActivesummary: The current activation of validator slashing.
Constants
DefaultOffenceExpirationInSessions: SessionIndex
interface:
api.consts.bfcOffences.defaultOffenceExpirationInSessionssummary: The default offence expiration in sessions.
DefaultMaximumOffenceCount: OffenceCount
interface:
api.consts.bfcOffences.defaultMaximumOffenceCountsummary: The default maximum offence count for all validators.
IsOffenceActive: bool
interface:
api.consts.bfcOffences.isOffenceActivesummary: The activation of validator offence management.
IsSlashActive: bool
interface:
api.consts.bfcOffences.isSlashActivesummary: The activation of validator slashing.
Last updated