Safe Haskell | None |
---|---|
Language | Haskell2010 |
Ouroboros.Consensus.Storage.LedgerDB.V1.Args
Synopsis
- data BackingStoreArgs (f ∷ Type → Type) (m ∷ Type → Type)
- = LMDBBackingStoreArgs FilePath (HKD f LMDBLimits) (Dict MonadIOPrim m)
- | InMemoryBackingStoreArgs
- data FlushFrequency
- data LedgerDbFlavorArgs (f ∷ Type → Type) (m ∷ Type → Type) = V1Args {}
- defaultLedgerDbFlavorArgs ∷ ∀ (m ∷ Type → Type). Incomplete LedgerDbFlavorArgs m
- shouldFlush ∷ FlushFrequency → Word64 → Bool
Documentation
data BackingStoreArgs (f ∷ Type → Type) (m ∷ Type → Type) Source #
Constructors
LMDBBackingStoreArgs FilePath (HKD f LMDBLimits) (Dict MonadIOPrim m) | |
InMemoryBackingStoreArgs |
data FlushFrequency Source #
The number of blocks in the immutable part of the chain that we have to see
before we flush the ledger tables to disk. See onDiskShouldFlush
.
Constructors
DefaultFlushFrequency | A default value, which is determined by a specific |
RequestedFlushFrequency Word64 | A requested value: the number of diffs in the immutable part of the chain required before flushing. |
DisableFlushing | To disable flushing, to be used in tests |
Instances
defaultLedgerDbFlavorArgs ∷ ∀ (m ∷ Type → Type). Incomplete LedgerDbFlavorArgs m Source #
shouldFlush ∷ FlushFrequency → Word64 → Bool Source #