Skip to main content

ConsensusCommitPrologueV1

open class ConsensusCommitPrologueV1 : Disposable, AutoCloseable, ConsensusCommitPrologueV1Interface

V1 of the consensus commit prologue system transaction

BCS

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

Constructors​

ConsensusCommitPrologueV1constructor(epoch: ULong, round: ULong, subDagIndex: ULong?, commitTimestampMs: ULong, consensusCommitDigest: ConsensusCommitDigest, consensusDeterminedVersionAssignments: ConsensusDeterminedVersionAssignments)

Functions​

NameSummary
close@Synchronized
open override fun close()
commitTimestampMsopen override fun commitTimestampMs(): ULong
Unix timestamp from consensus
consensusCommitDigestopen override fun consensusCommitDigest(): ConsensusCommitDigest
Digest of consensus output
consensusDeterminedVersionAssignmentsopen override fun consensusDeterminedVersionAssignments(): ConsensusDeterminedVersionAssignments
Stores consensus handler determined shared object version assignments.
destroyopen override fun destroy()
epochopen override fun epoch(): ULong
Epoch of the commit prologue transaction
equalsopen operator override fun equals(other: Any?): Boolean
roundopen override fun round(): ULong
Consensus round of the commit
subDagIndexopen override fun subDagIndex(): ULong?
The sub DAG index of the consensus commit. This field will be populated if there are multiple consensus commits per round.
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

Companion object functions​

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