HotStuffPolicy

org.sigilaris.node.jvm.runtime.consensus.hotstuff.HotStuffPolicy

Central policy constants and utility functions for the HotStuff consensus protocol.

Attributes

Source
Policy.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def canEmitLocally(role: LocalNodeRole, localPeer: PeerIdentity, validatorId: ValidatorId, holders: Vector[ValidatorKeyHolder]): Either[HotStuffPolicyViolation, Unit]

Checks whether the local peer is allowed to emit consensus artifacts for the given validator.

Checks whether the local peer is allowed to emit consensus artifacts for the given validator.

Attributes

Source
Policy.scala

Validates that no validator has multiple active key holders on different peers.

Validates that no validator has multiple active key holders on different peers.

Attributes

Source
Policy.scala
def quorumSize(activeValidatorCount: Int): Either[String, Int]

Computes the BFT quorum size (n - f where f = (n-1)/3) for the given validator count.

Computes the BFT quorum size (n - f where f = (n-1)/3) for the given validator count.

Attributes

Source
Policy.scala

Concrete fields

The default deployment target.

The default deployment target.

Attributes

Source
Policy.scala

The default request policy.

The default request policy.

Attributes

Source
Policy.scala