# Class: SlotHistory
A bitvector indicating which slots are present in the past epoch.
# Table of contents
# Constructors
# Accessors
# Methods
# Constructors
# constructor
• new SlotHistory(bits
, nextSlot
)
# Parameters
Name | Type |
---|---|
bits | BigUint64Array |
nextSlot | bigint |
# Defined in
internal.d.ts:415 (opens new window)
# Accessors
# bits
• get
bits(): BigUint64Array
# Returns
BigUint64Array
# Defined in
internal.d.ts:417 (opens new window)
• set
bits(bits
): void
# Parameters
Name | Type |
---|---|
bits | BigUint64Array |
# Returns
void
# Defined in
internal.d.ts:418 (opens new window)
# nextSlot
• get
nextSlot(): bigint
# Returns
bigint
# Defined in
internal.d.ts:419 (opens new window)
• set
nextSlot(slot
): void
# Parameters
Name | Type |
---|---|
slot | bigint |
# Returns
void
# Defined in
internal.d.ts:420 (opens new window)
# Methods
# add
▸ add(slot
): void
# Parameters
Name | Type |
---|---|
slot | bigint |
# Returns
void
# Defined in
internal.d.ts:421 (opens new window)
# check
▸ check(slot
): SlotHistoryCheck
# Parameters
Name | Type |
---|---|
slot | bigint |
# Returns
# Defined in
internal.d.ts:422 (opens new window)
# newest
▸ newest(): bigint
# Returns
bigint
# Defined in
internal.d.ts:424 (opens new window)
# oldest
▸ oldest(): bigint
# Returns
bigint
# Defined in
internal.d.ts:423 (opens new window)
# toString
▸ toString(): string
# Returns
string
# Defined in
internal.d.ts:425 (opens new window)
# default
▸ Static
default(): SlotHistory