[][src]Trait pallet_babe::Trait

Associated Types

type EpochDuration: Get<SlotNumber>

The amount of time, in slots, that each epoch should last.

type ExpectedBlockTime: Get<Self::Moment>

The expected average block time at which BABE should be creating blocks. Since BABE is probabilistic it is not trivial to figure out what the expected average block time should be based on the slot duration and the security parameter c (where 1 - c represents the probability of a slot being empty).

type EpochChangeTrigger: EpochChangeTrigger

BABE requires some logic to be triggered on every block to query for whether an epoch has ended and to perform the transition to the next epoch.

Typically, the ExternalTrigger type should be used. An internal trigger should only be used when no other module is responsible for changing authority set.

Loading content...

Implementors

Loading content...