ouroboros-consensus-0.28.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Storage.LedgerDB.V1.BackingStore

Description

See Ouroboros.Consensus.Storage.LedgerDB.V1.BackingStore.API for the documentation. This module just puts together the implementations for the API, currently two:

Synopsis

API

Most of the documentation on the behaviour of the BackingStore lives in this module.

Initialization

newBackingStoreTracer m SomeBackendTraceSomeBackendArgs m l → SnapshotsFS m → l EmptyMKLedgerTables l ValuesMK → m (LedgerBackingStore m l) Source #

Create a BackingStore from the given initial tables.

restoreBackingStoreTracer m SomeBackendTraceSomeBackendArgs m l → SnapshotsFS m → l EmptyMKFsPath → m (LedgerBackingStore m l) Source #

Overwrite the BackingStore tables with the snapshot's tables

Tracing

data SomeBackendTrace where Source #

Constructors

SomeBackendTrace ∷ ∀ (m ∷ TypeType) backend. Show (Trace m backend) ⇒ Trace m backend → SomeBackendTrace 

data SomeBackendArgs (m ∷ TypeType) (l ∷ LedgerStateKind) where Source #

Constructors

SomeBackendArgs ∷ ∀ (m ∷ TypeType) backend (l ∷ LedgerStateKind). Backend m backend l ⇒ Args m backend → SomeBackendArgs m l 

class Backend (m ∷ TypeType) backend (l ∷ LedgerStateKind) where Source #

Associated Types

data Args (m ∷ TypeType) backend Source #

data Trace (m ∷ TypeType) backend Source #

Methods

isRightBackendForSnapshotProxy l → Args m backend → SnapshotBackendBool Source #

newBackingStoreInitialiserTracer m SomeBackendTraceArgs m backend → SnapshotsFS m → BackingStoreInitialiser m l Source #