Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data TopLevelConfig blk = TopLevelConfig {
- topLevelConfigProtocol ∷ !(ConsensusConfig (BlockProtocol blk))
- topLevelConfigLedger ∷ !(LedgerConfig blk)
- topLevelConfigBlock ∷ !(BlockConfig blk)
- topLevelConfigCodec ∷ !(CodecConfig blk)
- topLevelConfigStorage ∷ !(StorageConfig blk)
- topLevelConfigCheckpoints ∷ !(CheckpointsMap 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'), Coercible (HeaderHash blk) (HeaderHash blk')) ⇒ TopLevelConfig blk → TopLevelConfig blk'
- mkTopLevelConfig ∷ ConsensusConfig (BlockProtocol blk) → LedgerConfig blk → BlockConfig blk → CodecConfig blk → StorageConfig blk → CheckpointsMap blk → TopLevelConfig blk
- newtype CheckpointsMap blk = CheckpointsMap {
- unCheckpointsMap ∷ Map BlockNo (HeaderHash blk)
- data DiffusionPipeliningSupport
- castCheckpointsMap ∷ Coercible (HeaderHash blk) (HeaderHash blk') ⇒ CheckpointsMap blk → CheckpointsMap blk'
- emptyCheckpointsMap ∷ CheckpointsMap 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
TopLevelConfig | |
|
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'), Coercible (HeaderHash blk) (HeaderHash blk')) ⇒ TopLevelConfig blk → TopLevelConfig blk' Source #
mkTopLevelConfig ∷ ConsensusConfig (BlockProtocol blk) → LedgerConfig blk → BlockConfig blk → CodecConfig blk → StorageConfig blk → CheckpointsMap blk → TopLevelConfig blk Source #
Checkpoints map
newtype CheckpointsMap blk Source #
Checkpoints are block hashes that are expected to be present in the honest historical chain.
Each checkpoint is associated with a BlockNo
, and any block with a
BlockNo
in the checkpoints map is expected to have the corresponding hash.
Instances
data DiffusionPipeliningSupport Source #
Configure consensus layer how to handle some cases of invalid data
when processing mini protocol communication in the presence of diffusion
pipelining. See also BlockSupportsDiffusionPipelining
Instances
castCheckpointsMap ∷ Coercible (HeaderHash blk) (HeaderHash blk') ⇒ CheckpointsMap blk → CheckpointsMap 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 #