ValidatorSet

org.sigilaris.node.jvm.runtime.consensus.hotstuff.ValidatorSet
See theValidatorSet companion object
final class ValidatorSet

An ordered, deduplicated set of consensus validators with quorum calculation support.

Attributes

Companion
object
Source
Artifacts.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def contains(validatorId: ValidatorId): Boolean

Checks whether the set contains a validator with the given ID.

Checks whether the set contains a validator with the given ID.

Value parameters

validatorId

the validator identity to check

Attributes

Returns

true if the validator is present

Source
Artifacts.scala
def member(validatorId: ValidatorId): Option[ValidatorMember]

Looks up a validator member by ID.

Looks up a validator member by ID.

Value parameters

validatorId

the validator identity to look up

Attributes

Returns

the member if present

Source
Artifacts.scala
def members: Vector[ValidatorMember]

Returns all validator members in insertion order.

Returns all validator members in insertion order.

Attributes

Source
Artifacts.scala
def quorumSize: Int

Returns the minimum number of votes needed for a quorum (2f+1 for 3f+1 validators).

Returns the minimum number of votes needed for a quorum (2f+1 for 3f+1 validators).

Attributes

Source
Artifacts.scala

Concrete fields

The canonical hash of this validator set, computed lazily.

The canonical hash of this validator set, computed lazily.

Attributes

Source
Artifacts.scala