AuditChainState

data class AuditChainState(val id: Int = 1, val lastHash: String, val lastTs: Long, val chainGeneration: Int, val eventCount: Long, val prunedThroughSeq: Long = 0, val prunedThroughHash: String = "GENESIS", val lastAckedSeq: Long = 0)

Tracks the current state of the audit chain.

This is stored separately to enable atomic updates and quick access to the last hash for chaining.

Constructors

Link copied to clipboard
constructor(id: Int = 1, lastHash: String, lastTs: Long, chainGeneration: Int, eventCount: Long, prunedThroughSeq: Long = 0, prunedThroughHash: String = "GENESIS", lastAckedSeq: Long = 0)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: Int
Link copied to clipboard

headSeq of the last checkpoint a server acknowledged; 0 before the first ack.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard