org.sigilaris.node.jvm.runtime.consensus.hotstuff.VoteAccumulator
See theVoteAccumulator companion object
final case class VoteAccumulator(votesById: Map[VoteId, Vote], votesByEquivocationKey: Map[EquivocationKey, Vote])
Accumulates votes and detects equivocations (double-voting).
Attributes
- Companion
- object
- Source
- Validation.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Prunes retained votes with the supplied predicate.
Prunes retained votes to the supplied vote-id set.
Records a vote, detecting duplicates and equivocations.
Number of equivocation keys retained by this accumulator.
Number of vote bodies retained by this accumulator.
Returns all votes for the given window and proposal ID.
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
In this article