TimeoutVoteAccumulator

org.sigilaris.node.jvm.runtime.consensus.hotstuff.TimeoutVoteAccumulator
See theTimeoutVoteAccumulator companion object
final case class TimeoutVoteAccumulator(votesById: Map[TimeoutVoteId, TimeoutVote], votesByEquivocationKey: Map[EquivocationKey, TimeoutVote])

Accumulates timeout votes and detects equivocations.

Attributes

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

Members list

Value members

Concrete methods

def prune(retain: TimeoutVote => Boolean): TimeoutVoteAccumulator

Prunes retained timeout votes with the supplied predicate.

Prunes retained timeout votes with the supplied predicate.

Attributes

Source
Validation.scala

Prunes retained timeout votes to the supplied timeout-vote-id set.

Prunes retained timeout votes to the supplied timeout-vote-id set.

Attributes

Source
Validation.scala

Number of equivocation keys retained by this accumulator.

Number of equivocation keys retained by this accumulator.

Attributes

Source
Validation.scala

Number of timeout vote bodies retained by this accumulator.

Number of timeout vote bodies retained by this accumulator.

Attributes

Source
Validation.scala
def votesFor(subject: TimeoutVoteSubject): Vector[TimeoutVote]

Attributes

Source
Validation.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product