SnapshotNodeStore

org.sigilaris.node.jvm.runtime.consensus.hotstuff.SnapshotNodeStore
See theSnapshotNodeStore companion trait

Companion for SnapshotNodeStore, 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[_] : Sync](keyValueStore: KeyValueStore[F, MerkleHash, MerkleTrieNode]): SnapshotNodeStore[F]

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

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

Attributes

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

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

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

Attributes

Source
SnapshotSync.scala