HotStuffPacemakerRuntime

org.sigilaris.node.jvm.runtime.consensus.hotstuff.HotStuffPacemakerRuntime
See theHotStuffPacemakerRuntime companion object
final case class HotStuffPacemakerRuntime(localValidator: ValidatorId, validatorSet: ValidatorSet, policy: HotStuffPacemakerPolicy)

Pure pacemaker runtime that drives state transitions for a single local validator.

Attributes

Companion
object
Source
PacemakerRuntime.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Processes an observed new-view message, potentially advancing the window.

Processes an observed new-view message, potentially advancing the window.

Attributes

Source
PacemakerRuntime.scala

Processes an observed timeout vote, potentially assembling a timeout certificate.

Processes an observed timeout vote, potentially assembling a timeout certificate.

Attributes

Source
PacemakerRuntime.scala

Determines the local validator's proposal eligibility for the current state.

Determines the local validator's proposal eligibility for the current state.

Attributes

Source
PacemakerRuntime.scala
def start(activeWindow: HotStuffWindow, highestKnownQc: QuorumCertificate, now: Instant, bootstrapHoldReason: Option[String]): HotStuffPacemakerStep

Initializes the pacemaker for a new consensus window.

Initializes the pacemaker for a new consensus window.

Attributes

Source
PacemakerRuntime.scala

Advances the pacemaker clock, potentially triggering a timeout vote.

Advances the pacemaker clock, potentially triggering a timeout vote.

Attributes

Source
PacemakerRuntime.scala
def timeoutFor(window: HotStuffWindow, consecutiveTimeoutWindows: Int): Duration

Computes the timeout duration for a given window and consecutive timeout count.

Computes the timeout duration for a given window and consecutive timeout count.

Attributes

Source
PacemakerRuntime.scala
def updateBootstrapHold(state: HotStuffPacemakerState, bootstrapHoldReason: Option[String]): HotStuffPacemakerStep

Updates the bootstrap hold reason, potentially triggering leader activation.

Updates the bootstrap hold reason, potentially triggering leader activation.

Attributes

Source
PacemakerRuntime.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product