Slot History

class SlotHistory

A bitvector indicating which slots are present in the past epoch.

add(slot)
bits
check(slot)
static default()
static from_bytes(data)

Deserialize from bytes.

Parameters:

data (bytes) – the serialized object.

Returns: the deserialized object.

static from_json(raw)

Build from a JSON string.

newest()
next_slot
oldest()
to_json()

Convert to a JSON string.

class SlotHistoryCheck
Found = SlotHistoryCheck.Found
Future = SlotHistoryCheck.Future
NotFound = SlotHistoryCheck.NotFound
TooOld = SlotHistoryCheck.TooOld