Skip to main content

Module epoch_boundaries

Module epoch_boundaries 

Source
Expand description

Maintain the sequence number of the last checkpoint of each epoch.

Structs§

EpochBoundaries
Stores the epoch boundaries.

Functions§

finalize_epoch_boundaries
Encodes the epoch boundaries with its magic byte and a trailing SHA3-256 checksum.
read_epoch_boundaries
Reads the epoch boundaries from the store.
read_epoch_boundaries_from_bytes
Decodes epoch boundaries from the given byte vector and verifies their integrity.
write_epoch_boundaries
Writes the epoch boundaries to the store atomically.