Skip to main content

ValidatorCommittee

open class ValidatorCommittee : Disposable, AutoCloseable, ValidatorCommitteeInterface

The Validator Set for a particular epoch.

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

Constructors​

ValidatorCommitteeconstructor(epoch: ULong, members: List<ValidatorCommitteeMember>)
Construct a ValidatorCommittee and verify it via validate.

Functions​

NameSummary
close@Synchronized
open override fun close()
destroyopen override fun destroy()
epochopen override fun epoch(): ULong
equalsopen operator override fun equals(other: Any?): Boolean
membersopen override fun members(): List<ValidatorCommitteeMember>
toBcsopen override fun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringopen override fun toDisplayString(): String
Render this type as human-readable text.
toJsonopen override fun toJson(): String
Convert this type to a JSON encoded string.
toStringopen override fun toString(): String
totalStakeopen override fun totalStake(): ULong
The combined stake of all members.
validateopen override fun validate()
Checks if the committee is valid.

Companion object functions​

NameSummary
fromBcsfun fromBcs(bcs: ByteArray): ValidatorCommittee
Create this type from BCS encoded bytes.
fromJsonfun fromJson(json: String): ValidatorCommittee
Create this type from a JSON encoded string.