HotStuffSnapshotStores

org.sigilaris.node.jvm.storage.swaydb.HotStuffSnapshotStores

Factory for creating SwayDB-backed HotStuff snapshot stores.

Attributes

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

Members list

Value members

Concrete methods

def metadata(layout: StorageLayout)(using Async[IO]): Resource[IO, SnapshotMetadataStore[IO]]

Creates a SwayDB-backed store for snapshot metadata, keyed by chain ID.

Creates a SwayDB-backed store for snapshot metadata, keyed by chain ID.

Value parameters

layout

the storage layout defining directory paths

Attributes

Returns

a resource that yields a SnapshotMetadataStore

Source
HotStuffSnapshotStores.scala
def nodes(layout: StorageLayout)(using Async[IO]): Resource[IO, SnapshotNodeStore[IO]]

Creates a SwayDB-backed store for Merkle trie nodes used in snapshots.

Creates a SwayDB-backed store for Merkle trie nodes used in snapshots.

Value parameters

layout

the storage layout defining directory paths

Attributes

Returns

a resource that yields a SnapshotNodeStore

Source
HotStuffSnapshotStores.scala