Safe Haskell | None |
---|---|
Language | Haskell2010 |
Ouroboros.Consensus.Config
Synopsis
- data TopLevelConfig blk = TopLevelConfig {
- topLevelConfigProtocol ∷ !(ConsensusConfig (BlockProtocol blk))
- topLevelConfigLedger ∷ !(LedgerConfig blk)
- topLevelConfigBlock ∷ !(BlockConfig blk)
- topLevelConfigCodec ∷ !(CodecConfig blk)
- topLevelConfigStorage ∷ !(StorageConfig blk)
- castTopLevelConfig ∷ (Coercible (ConsensusConfig (BlockProtocol blk)) (ConsensusConfig (BlockProtocol blk')), LedgerConfig blk ~ LedgerConfig blk', Coercible (BlockConfig blk) (BlockConfig blk'), Coercible (CodecConfig blk) (CodecConfig blk'), Coercible (StorageConfig blk) (StorageConfig blk')) ⇒ TopLevelConfig blk → TopLevelConfig blk'
- mkTopLevelConfig ∷ ConsensusConfig (BlockProtocol blk) → LedgerConfig blk → BlockConfig blk → CodecConfig blk → StorageConfig blk → TopLevelConfig blk
- configBlock ∷ TopLevelConfig blk → BlockConfig blk
- configCodec ∷ TopLevelConfig blk → CodecConfig blk
- configConsensus ∷ TopLevelConfig blk → ConsensusConfig (BlockProtocol blk)
- configLedger ∷ TopLevelConfig blk → LedgerConfig blk
- configStorage ∷ TopLevelConfig blk → StorageConfig blk
- configSecurityParam ∷ ConsensusProtocol (BlockProtocol blk) ⇒ TopLevelConfig blk → SecurityParam
- module Ouroboros.Consensus.Config.SecurityParam
The top-level node configuration
data TopLevelConfig blk Source #
The top-level node configuration
Constructors
TopLevelConfig | |
Fields
|
Instances
castTopLevelConfig ∷ (Coercible (ConsensusConfig (BlockProtocol blk)) (ConsensusConfig (BlockProtocol blk')), LedgerConfig blk ~ LedgerConfig blk', Coercible (BlockConfig blk) (BlockConfig blk'), Coercible (CodecConfig blk) (CodecConfig blk'), Coercible (StorageConfig blk) (StorageConfig blk')) ⇒ TopLevelConfig blk → TopLevelConfig blk' Source #
mkTopLevelConfig ∷ ConsensusConfig (BlockProtocol blk) → LedgerConfig blk → BlockConfig blk → CodecConfig blk → StorageConfig blk → TopLevelConfig blk Source #
Derived extraction functions
configBlock ∷ TopLevelConfig blk → BlockConfig blk Source #
configCodec ∷ TopLevelConfig blk → CodecConfig blk Source #
configConsensus ∷ TopLevelConfig blk → ConsensusConfig (BlockProtocol blk) Source #
configLedger ∷ TopLevelConfig blk → LedgerConfig blk Source #
configStorage ∷ TopLevelConfig blk → StorageConfig blk Source #
Additional convenience functions
configSecurityParam ∷ ConsensusProtocol (BlockProtocol blk) ⇒ TopLevelConfig blk → SecurityParam Source #