ouroboros-consensus
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Storage.ChainDB.Impl.Args

Synopsis

Documentation

data ChainDbArgs (f ∷ Type → Type) (m ∷ Type → Type) blk Source #

data ChainDbSpecificArgs (f ∷ Type → Type) (m ∷ Type → Type) 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.

completeChainDbArgs Source #

Arguments

∷ ∀ blk (m ∷ Type → Type). (ConsensusProtocol (BlockProtocol blk), IOLike m) 
⇒ ResourceRegistry m 
→ TopLevelConfig blk 
→ ExtLedgerState blk ValuesMK

Initial ledger

→ ChunkInfo 
→ (blk → Bool)

Check integrity

→ (RelativeMountPoint → SomeHasFS m)

Immutable FS, see NodeDatabasePaths

→ (RelativeMountPoint → SomeHasFS m)

Volatile FS, see NodeDatabasePaths

→ StdGen

Randomised snapshot delay RNG

→ LedgerDbBackendArgs m blk 
→ Incomplete ChainDbArgs m blk

A set of incomplete arguments, possibly modified wrt defaultArgs

→ Complete ChainDbArgs m blk 

defaultArgs ∷ ∀ (m ∷ Type → Type) blk. (IOLike m, LedgerDbSerialiseConstraints blk, LedgerSupportsProtocol blk, CanUpgradeLedgerTables LedgerState blk) ⇒ Incomplete ChainDbArgs 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.

enableLedgerEvents ∷ ∀ (m ∷ Type → Type) blk. Complete ChainDbArgs m blk → Complete ChainDbArgs m blk Source #

ensureValidateAll ∷ ∀ (f ∷ Type → Type) (m ∷ Type → Type) blk. ChainDbArgs f m blk → ChainDbArgs f m blk Source #

updateQueryBatchSize ∷ ∀ (f ∷ Type → Type) (m ∷ Type → Type) blk. QueryBatchSize → ChainDbArgs f m blk → ChainDbArgs f m blk Source #

updateSnapshotPolicyArgs ∷ ∀ (f ∷ Type → Type) (m ∷ Type → Type) blk. SnapshotPolicyArgs → ChainDbArgs f m blk → ChainDbArgs f m blk Source #

updateTracer ∷ ∀ (m ∷ Type → Type) blk (f ∷ Type → Type). Monad m ⇒ Tracer m (TraceEvent blk) → ChainDbArgs f m blk → ChainDbArgs f m blk Source #