1 stable release

3.2.2 Nov 5, 2025
3.1.1 Oct 31, 2025

#4 in #leader

44 downloads per month
Used in 13 crates (7 directly)

Apache-2.0

15KB
204 lines

Configuration for epochs and slots.

Epochs mark a period of time composed of slots, for which a particular leader schedule is in effect. The epoch schedule determines the length of epochs, and the timing of the next leader-schedule selection.

The epoch schedule does not change during the life of a blockchain, though the length of an epoch does — during the initial launch of the chain there is a "warmup" period, where epochs are short, with subsequent epochs increasing in slots until they last for DEFAULT_SLOTS_PER_EPOCH.

Dependencies

~0.2–1.8MB
~36K SLoC