| 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)
- mkTopLevelConfig :: ConsensusConfig (BlockProtocol blk) -> LedgerConfig blk -> BlockConfig blk -> CodecConfig blk -> StorageConfig blk -> TopLevelConfig 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'
- configConsensus :: TopLevelConfig blk -> ConsensusConfig (BlockProtocol blk)
- configLedger :: TopLevelConfig blk -> LedgerConfig blk
- configBlock :: TopLevelConfig blk -> BlockConfig blk
- configCodec :: TopLevelConfig blk -> CodecConfig 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
mkTopLevelConfig :: ConsensusConfig (BlockProtocol blk) -> LedgerConfig blk -> BlockConfig blk -> CodecConfig blk -> StorageConfig blk -> TopLevelConfig blk Source #
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 #
Derived extraction functions
configConsensus :: TopLevelConfig blk -> ConsensusConfig (BlockProtocol blk) Source #
configLedger :: TopLevelConfig blk -> LedgerConfig blk Source #
configBlock :: TopLevelConfig blk -> BlockConfig blk Source #
configCodec :: TopLevelConfig blk -> CodecConfig blk Source #
configStorage :: TopLevelConfig blk -> StorageConfig blk Source #
Additional convenience functions
configSecurityParam :: ConsensusProtocol (BlockProtocol blk) => TopLevelConfig blk -> SecurityParam Source #