chore: improve EpochSchedule docs

This commit is contained in:
Justin Starry 2020-03-29 22:18:02 +08:00 committed by Michael Vines
parent 7184fd79f6
commit ed2a0c7acb
1 changed files with 5 additions and 5 deletions

View File

@ -189,11 +189,11 @@ const GetEpochInfoResult = struct({
* (see https://docs.solana.com/terminology#epoch)
*
* @typedef {Object} EpochSchedule
* @property {number} slots_per_epoch
* @property {number} leader_schedule_slot_offset
* @property {boolean} warmup
* @property {number} first_normal_epoch
* @property {number} first_normal_slot
* @property {number} slotsPerEpoch The maximum number of slots in each epoch
* @property {number} leaderScheduleSlotOffset The number of slots before beginning of an epoch to calculate a leader schedule for that epoch
* @property {boolean} warmup Indicates whether epochs start short and grow
* @property {number} firstNormalEpoch The first epoch with `slotsPerEpoch` slots
* @property {number} firstNormalSlot The first slot of `firstNormalEpoch`
*/
const GetEpochScheduleResult = struct({
slotsPerEpoch: 'number',