object ViewConfirmationParameters extends Serializable
- Alphabetic
- By Inheritance
- ViewConfirmationParameters
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class InvalidViewConfirmationParameters(message: String) extends RuntimeException with Product with Serializable
Indicates an attempt to create an invalid ViewConfirmationParameters.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def confirmersIdsFromQuorums(quorums: Seq[Quorum]): Set[LfPartyId]
Extracts all confirming parties' distinct IDs from the list of quorums
- def create(informees: Set[LfPartyId], quorums: Seq[Quorum]): Either[InvariantViolation, ViewConfirmationParameters]
There can be multiple quorums/threshold.
There can be multiple quorums/threshold. Therefore, we need to make sure those quorums confirmers are present in the list of informees.
- def create(informees: Map[LfPartyId, NonNegativeInt], threshold: NonNegativeInt): ViewConfirmationParameters
Creates a ViewConfirmationParameters with a single quorum consisting of all confirming parties and a given threshold.
Creates a ViewConfirmationParameters with a single quorum consisting of all confirming parties and a given threshold.
Informees are parties involved in the view and can have a weight indicating their confirmation role:
- Non-confirming informees have a weight of 0.
- Confirming informees have a positive weight (with a recommended value of 1).
The
threshold
parameter determines the minimum number of confirmers required to approve the view. Currently, only thresholds equal to the total weight of all confirmers are supported (i.e., threshold == sum of weights of all confirming informees). - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tryCreate(informees: Set[LfPartyId], quorums: Seq[Quorum]): ViewConfirmationParameters
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])