BIFROST Network
  • Introduction
  • Bifrost Network Architecture
    • Consensus
    • Cross-Chain Communication Protocol (CCCP)
    • Oracle Service
  • Running a Node
    • Basic-Node Requirements
    • Full-Node Requirements
    • Validator Account Management
    • Guide for Operators
      • Setting up an Endpoint Node
        • Using Docker
        • Using Systemd
      • Setting up a Validator Node
        • Using Docker
        • Using Systemd
      • Setting up a Relayer
        • bifrost-relayer.rs
        • bifrost-relayer.py (Deprecated)
      • Chain Data Snapshots
      • Trouble Shooting
        • Testnet Chain Sync Issue
    • System Monitoring
      • Prometheus and Grafana
      • Sentry
  • Nominators
  • Developer Documentations
    • Ethereum API
      • Ethereum Precompiled Contracts
      • Libraries
      • Developer Environments
    • Bifrost Precompiled Contracts
      • Staking
      • Governance
      • RelayManager
    • Pallet Interfaces
      • BfcStaking
      • BfcUtility
      • BfcOffences
      • RelayManager
    • Client API
      • JSON-RPC API
        • author
        • chain
        • childstate
        • debug
        • eth
        • grandpa
        • net
        • offchain
        • payment
        • rpc
        • state
        • system
        • trace
        • txpool
        • web3
      • Explorer API
      • Runtime API
    • Cross-Chain Transaction and Oracle API
      • Price Oracle Contract API
      • Socket Contract API
    • Testnet Faucet
  • Governance
  • Security
  • Tokens & Assets
    • Unified Token
    • Inflation Model
  • Add Network
    • Pockie
    • MetaMask
  • Bridge
    • Bridge Guide
      • Depositing to the Bifrost Network
      • Withdrawing to another network
    • Glossary
  • Staking
    • Staking Guide
      • Stake BFC
      • Unstake BFC
    • Glossary
      • All Validators
      • My Staking Status
  • Language
    • 바이프로스트 네트워크 가이드
Powered by GitBook
On this page
  • Description
  • Extrinsics
  • Storage Values
  • Constants
  1. Developer Documentations
  2. Pallet Interfaces

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.setOffenceExpiration

  • summary: 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.setMaxOffenceCount

  • summary: 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.setOffenceActivation

  • summary: Sets the activation of validator offence management. The origin should be the root.

set_slash_activation(is_active: bool)

  • interface: api.tx.bfcOffences.setOffenceActivation

  • summary: Sets the activation of validator slashing. The origin should be the root.

Storage Values

ValidatorOffences(AccountId): Option<ValidatorOffenceInfo<BalanceOf>>

  • interface: api.query.bfcOffences.validatorOffences

  • summary: The current offence state of a specific validator.

OffenceExpirationInSessions(): SessionIndex

  • interface: api.query.bfcOffences.offenceExpirationInSessions

  • summary: The current offence expiration in sessions.

MaximumOffenceCount(): OffenceCount

  • interface: api.query.bfcOffences.maximumOffenceCount

  • summary: The current maximum offence count for all validators.

IsOffenceActive(): bool

  • interface: api.query.bfcOffences.isOffenceActive

  • summary: The current activation of validator offence management.

IsSlashActive(): bool

  • interface: api.query.bfcOffences.isSlashActive

  • summary: The current activation of validator slashing.

Constants

DefaultOffenceExpirationInSessions: SessionIndex

  • interface: api.consts.bfcOffences.defaultOffenceExpirationInSessions

  • summary: The default offence expiration in sessions.

DefaultMaximumOffenceCount: OffenceCount

  • interface: api.consts.bfcOffences.defaultMaximumOffenceCount

  • summary: The default maximum offence count for all validators.

IsOffenceActive: bool

  • interface: api.consts.bfcOffences.isOffenceActive

  • summary: The activation of validator offence management.

IsSlashActive: bool

  • interface: api.consts.bfcOffences.isSlashActive

  • summary: The activation of validator slashing.

PreviousBfcUtilityNextRelayManager

Last updated 1 year ago