hotstuff_rs::pacemaker

Module implementation

source
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.
  • PacemakerState ๐Ÿ”’
    In-memory state of a Pacemaker.
  • ViewInfo ๐Ÿ”’
    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ยง

Functionsยง

  • epoch ๐Ÿ”’
    Compute the current epoch based on the current view and the configured epoch_length.
  • Check whether view is an epoch-change view given the configured epoch_length.
  • Deterministically select a replica in validator_set to become the leader of view using the Interleaved WRR algorithm.