Safe Haskell | None |
---|---|
Language | Haskell2010 |
Ouroboros.Consensus.Storage.ChainDB.Impl.Args
Contents
Synopsis
-
data
ChainDbArgs
f m blk =
ChainDbArgs
{
- cdbHasFSImmutableDB :: SomeHasFS m
- cdbHasFSVolatileDB :: SomeHasFS m
- cdbHasFSLgrDB :: SomeHasFS m
- cdbImmutableDbValidation :: ValidationPolicy
- cdbVolatileDbValidation :: BlockValidationPolicy
- cdbMaxBlocksPerFile :: BlocksPerFile
- cdbDiskPolicy :: DiskPolicy
- cdbTopLevelConfig :: HKD f ( TopLevelConfig blk)
- cdbChunkInfo :: HKD f ChunkInfo
- cdbCheckIntegrity :: HKD f (blk -> Bool )
- cdbGenesis :: HKD f (m ( ExtLedgerState blk))
- cdbCheckInFuture :: HKD f ( CheckInFuture m blk)
- cdbImmutableDbCacheConfig :: CacheConfig
- cdbTracer :: Tracer m ( TraceEvent blk)
- cdbTraceLedger :: Tracer m ( LedgerDB' blk)
- cdbRegistry :: HKD f ( ResourceRegistry m)
- cdbGcDelay :: DiffTime
- cdbGcInterval :: DiffTime
- cdbBlocksToAddSize :: Word
-
data
ChainDbSpecificArgs
f m blk =
ChainDbSpecificArgs
{
- cdbsBlocksToAddSize :: Word
- cdbsCheckInFuture :: HKD f ( CheckInFuture m blk)
- cdbsGcDelay :: DiffTime
- cdbsGcInterval :: DiffTime
- cdbsRegistry :: HKD f ( ResourceRegistry m)
- cdbsTracer :: Tracer m ( TraceEvent blk)
- newtype RelativeMountPoint = RelativeMountPoint FilePath
- defaultArgs :: forall m blk. Monad m => ( RelativeMountPoint -> SomeHasFS m) -> DiskPolicy -> ChainDbArgs Defaults m blk
- fromChainDbArgs :: forall m blk f. MapHKD f => ChainDbArgs f m blk -> ( ImmutableDbArgs f m blk, VolatileDbArgs f m blk, LgrDbArgs f m blk, ChainDbSpecificArgs f m blk)
Documentation
data ChainDbArgs f m blk Source #
Constructors
ChainDbArgs | |
Fields
|
data ChainDbSpecificArgs f m blk Source #
Arguments specific to the ChainDB, not to the ImmutableDB, VolatileDB, or LedgerDB.
Constructors
ChainDbSpecificArgs | |
Fields
|
newtype RelativeMountPoint Source #
A relative path for a
MountPoint
The root is determined by context.
Constructors
RelativeMountPoint FilePath |
defaultArgs :: forall m blk. Monad m => ( RelativeMountPoint -> SomeHasFS m) -> DiskPolicy -> ChainDbArgs Defaults m blk Source #
Default arguments
See
defaultArgs
,
defaultArgs
,
defaultArgs
,
and
defaultSpecificArgs
for a list of which fields are not given a default
and must therefore be set explicitly.
Internal
fromChainDbArgs :: forall m blk f. MapHKD f => ChainDbArgs f m blk -> ( ImmutableDbArgs f m blk, VolatileDbArgs f m blk, LgrDbArgs f m blk, ChainDbSpecificArgs f m blk) Source #
Internal: split
ChainDbArgs
into
ImmutableDbArgs
, 'VolatileDbArgs,
LgrDbArgs
, and
ChainDbSpecificArgs
.