SnapshotMetadataStore

org.sigilaris.node.jvm.runtime.consensus.hotstuff.SnapshotMetadataStore
See theSnapshotMetadataStore companion trait

Companion for SnapshotMetadataStore, providing in-memory and key-value-backed implementations.

Attributes

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

Members list

Value members

Concrete methods

def fromKeyValueStore[F[_] : Concurrent](keyValueStore: KeyValueStore[F, ChainId, Vector[SnapshotMetadata]]): F[SnapshotMetadataStore[F]]

Creates a metadata store backed by a key-value store.

Creates a metadata store backed by a key-value store.

Attributes

Source
SnapshotSync.scala
def inMemory[F[_] : Sync]: F[SnapshotMetadataStore[F]]

Creates an in-memory metadata store backed by a Ref.

Creates an in-memory metadata store backed by a Ref.

Attributes

Source
SnapshotSync.scala