HistoricalProposalArchive

org.sigilaris.node.jvm.runtime.consensus.hotstuff.HistoricalProposalArchive
See theHistoricalProposalArchive companion object

Persistent archive for historical proposals, supporting list, put, remove, and deduplication.

Attributes

Companion
object
Source
Materialization.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def close: F[Unit]

Releases resources held by the archive.

Releases resources held by the archive.

Attributes

Source
Materialization.scala
def contains(chainId: ChainId, proposalId: ProposalId): F[Boolean]

Checks whether a proposal is already archived.

Checks whether a proposal is already archived.

Attributes

Source
Materialization.scala
def list(chainId: ChainId): F[Vector[HistoricalArchiveEntry]]

Lists all archived entries for the given chain.

Lists all archived entries for the given chain.

Attributes

Source
Materialization.scala
def putAll(chainId: ChainId, proposals: Vector[Proposal], source: HistoricalArchiveSource, storedAt: Instant): F[Vector[ProposalId]]

Archives proposals, returning the IDs of newly stored ones (skipping duplicates).

Archives proposals, returning the IDs of newly stored ones (skipping duplicates).

Attributes

Source
Materialization.scala
def removeAll(chainId: ChainId, proposalIds: Vector[ProposalId]): F[Int]

Removes the given proposals from the archive, returning the count actually removed.

Removes the given proposals from the archive, returning the count actually removed.

Attributes

Source
Materialization.scala