1 stable release

3.0.0 Sep 1, 2025

#8 in #warmup

Download history 136/week @ 2025-08-31 73/week @ 2025-09-07 51/week @ 2025-09-14 83/week @ 2025-09-21 51/week @ 2025-09-28 50/week @ 2025-10-05 61/week @ 2025-10-12 98/week @ 2025-10-19 49/week @ 2025-10-26 39/week @ 2025-11-02 30/week @ 2025-11-09

235 downloads per month
Used in 20 crates (9 directly)

MIT license

31KB
564 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.3–1.7MB
~37K SLoC