| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.Storage.LedgerDB.V1.Args
Synopsis
- data FlushFrequency
- data LedgerDbBackendArgs (m ∷ Type → Type) (l ∷ LedgerStateKind) = V1Args {}
- shouldFlush ∷ FlushFrequency → Word64 → Bool
Documentation
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
data LedgerDbBackendArgs (m ∷ Type → Type) (l ∷ LedgerStateKind) Source #
Constructors
| V1Args | |
Fields | |
shouldFlush ∷ FlushFrequency → Word64 → Bool Source #