Expand description
Event-driven implementation of the Pacemaker subprotocol.
Main type: Pacemaker
.
Structsยง
- Pacemaker ๐A single participant in the Pacemaker subprotocol.
- Configuration variables for the
Pacemaker
struct. - Pacemaker
State ๐In-memory state of aPacemaker
. - View
Info ๐Describes a view (most often the current view), in terms of its view number and its view deadline (the instant in time in which the view should end if no progress was made).
Enumsยง
- Enumerates the different ways a
Pacemaker::extend_view
call can fail. - Enumerates the different ways a call to any of
Pacemaker
โs methods can fail. - Enumerates the different ways a
Pacemaker::update_view
call can fail.
Functionsยง
- epoch ๐Compute the current epoch based on the current
view
and the configuredepoch_length
. - is_
epoch_ ๐change_ view Check whetherview
is an epoch-change view given the configuredepoch_length
. - Deterministically select a replica in
validator_set
to become the leader ofview
using the Interleaved WRR algorithm.