EpochSchedule class

An epoch schedule

Annotations
  • @JsonSerializable()

Constructors

EpochSchedule({required int slotsPerEpoch, required int leaderScheduleSlotOffset, required bool warmup, required int firstNormalEpoch, required int firstNormalSlot})
const
EpochSchedule.fromJson(Map<String, dynamic> json)
factory

Properties

firstNormalEpoch int
First normal-length epoch, log2(slotsPerEpoch) - log2(MINIMUM_SLOTS_PER_EPOCH).
final
firstNormalSlot int
MINIMUM_SLOTS_PER_EPOCH * (2.pow(firstNormalEpoch) - 1).
final
hashCode int
The hash code for this object.
no setterinherited
leaderScheduleSlotOffset int
The number of slots before beginning of an epoch to calculate a leader schedule for that epoch.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slotsPerEpoch int
The maximum number of slots in each epoch.
final
warmup bool
Whether epochs start short and grow.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited