Expand description
Time.
Constants§
- DAYS
- EPOCH_
DURATION_ IN_ BLOCKS - EPOCH_
DURATION_ IN_ SLOTS - HOURS
- MILLISECS_
PER_ BLOCK - Since BABE is probabilistic this is the average expected block time that
we are targeting. Blocks will be produced at a minimum duration defined
by
SLOT_DURATION, but some slots will not be allocated to any authority and hence no block will be produced. We expect to have this block time on average following the defined slot duration and the value ofcconfigured for BABE (where1 - crepresents the probability of a slot being empty). This value is only used indirectly to define the unit constants below that are expressed in blocks. The rest of the code should useSLOT_DURATIONinstead (like the Timestamp pallet for calculating the minimum period). - MINUTES
- PRIMARY_
PROBABILITY - SECS_
PER_ BLOCK - SLOT_
DURATION