HotStuffPolicy
org.sigilaris.node.jvm.runtime.consensus.hotstuff.HotStuffPolicy
object HotStuffPolicy
Central policy constants and utility functions for the HotStuff consensus protocol.
Attributes
- Source
- Policy.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HotStuffPolicy.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
def ensureDistinctActiveKeyHolders(holders: Vector[ValidatorKeyHolder]): Either[HotStuffPolicyViolation, Vector[ValidatorKeyHolder]]
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
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 request policy.
In this article