referrerpolicy=no-referrer-when-downgrade

Type Alias pallet_babe::pallet::SegmentIndex

source ·
pub type SegmentIndex<T> = StorageValue<_GeneratedPrefixForStorageSegmentIndex<T>, u32, ValueQuery>;
Expand description

Randomness under construction.

We make a trade-off between storage accesses and list length. We store the under-construction randomness in segments of up to UNDER_CONSTRUCTION_SEGMENT_LENGTH.

Once a segment reaches this length, we begin the next one. We reset all segments and return to 0 at the beginning of every epoch.

Storage type is [StorageValue] with value type u32.

Aliased Type§

struct SegmentIndex<T>(/* private fields */);