CheckpointContentsV1
open class CheckpointContentsV1 : Disposable, AutoCloseable, CheckpointContentsV1Interface
CheckpointContents are the transactions included in an upcoming checkpoint. They must have already been causally ordered. Since the causal order algorithm is the same among validators, we expect all honest validators to come up with the same order for each checkpoint content.
BCS
The BCS serialized form of this type is specified in bcs-schema.abnf.
Constructors
| CheckpointContentsV1 | constructor(transactionInfo: List<CheckpointTransactionInfo>) |
Functions
| Name | Summary |
|---|---|
| close | @Synchronized open override fun close() |
| destroy | open override fun destroy() |
| isEmpty | open override fun isEmpty(): Boolean Whether this checkpoint has no transactions. |
| len | open override fun len(): ULong The number of transactions in this checkpoint. |
| toBcs | open override fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | open override fun toDisplayString(): String Render this type as human-readable text. |
| toJson | open override fun toJson(): String Convert this type to a JSON encoded string. |
| transactions | open override fun transactions(): List<CheckpointTransactionInfo> |
Companion object functions
| Name | Summary |
|---|---|
| fromBcs | fun fromBcs(bcs: ByteArray): CheckpointContentsV1 Create this type from BCS encoded bytes. |
| fromJson | fun fromJson(json: String): CheckpointContentsV1 Create this type from a JSON encoded string. |