HistoricalProposalArchive

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

Companion for HistoricalProposalArchive, providing in-memory and SwayDB-backed implementations.

Attributes

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

Members list

Value members

Concrete methods

def inMemory[F[_] : Sync]: F[HistoricalProposalArchive[F]]

Creates an in-memory archive backed by a Ref.

Creates an in-memory archive backed by a Ref.

Attributes

Source
Materialization.scala
def noop[F[_] : Applicative]: HistoricalProposalArchive[F]

Creates a no-op archive that discards all writes.

Creates a no-op archive that discards all writes.

Attributes

Source
Materialization.scala
def swaydb[F[_] : Async : LiftIO](layout: StorageLayout): F[HistoricalProposalArchive[F]]

Creates a persistent archive backed by SwayDB.

Creates a persistent archive backed by SwayDB.

Attributes

Source
Materialization.scala