referrerpolicy=no-referrer-when-downgrade

Crate pallet_babe

Source
Expand description

Consensus extension module for BABE consensus. Collects on-chain randomness from VRF outputs and manages epoch transitions.

Re-exports§

pub use pallet::*;

Modules§

migrations
pallet
The pallet module in each FRAME pallet hosts the most important items needed to construct this pallet.

Structs§

CurrentBlockRandomnessDeprecated
Randomness produced semi-freshly with each block, but inherits limitations of RandomnessFromTwoEpochsAgo from which it derives.
EquivocationOffence
BABE equivocation offence report.
EquivocationReportSystem
BABE equivocation offence report system.
ExternalTrigger
A type signifying to BABE that an external trigger for epoch changes (e.g. pallet-session) is used.
ParentBlockRandomness
Randomness produced semi-freshly with each block, but inherits limitations of RandomnessFromTwoEpochsAgo from which it derives.
RandomnessFromOneEpochAgo
Randomness usable by on-chain code that does not depend upon finality and takes action based upon on-chain commitments made during the previous epoch.
RandomnessFromTwoEpochsAgo
Randomness usable by consensus protocols that depend upon finality and take action based upon on-chain commitments made during the epoch before the previous epoch.
SameAuthoritiesForever
A type signifying to BABE that it should perform epoch changes with an internal trigger, recycling the same authorities forever.

Traits§

EpochChangeTrigger
Trigger an epoch change, if any should take place.
WeightInfo

Type Aliases§

AuthorityId
A Babe authority identifier. Necessarily equivalent to the schnorrkel public key used in the main Babe module. If that ever changes, then this must, too.