| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.Config.SupportsNode
Synopsis
- class ConfigSupportsNode blk where
- getSystemStart :: BlockConfig blk -> SystemStart
- getNetworkMagic :: BlockConfig blk -> NetworkMagic
Documentation
class ConfigSupportsNode blk where Source #
The BlockConfig needs to contain some information in order to support
running a node.
Methods
getSystemStart :: BlockConfig blk -> SystemStart Source #
getNetworkMagic :: BlockConfig blk -> NetworkMagic Source #
Instances
| CanHardFork xs => ConfigSupportsNode (HardForkBlock xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.Node Methods getSystemStart :: BlockConfig (HardForkBlock xs) -> SystemStart Source # getNetworkMagic :: BlockConfig (HardForkBlock xs) -> NetworkMagic Source # | |
| ConfigSupportsNode m => ConfigSupportsNode (DualBlock m a) Source # | |
Defined in Ouroboros.Consensus.Ledger.Dual Methods getSystemStart :: BlockConfig (DualBlock m a) -> SystemStart Source # getNetworkMagic :: BlockConfig (DualBlock m a) -> NetworkMagic Source # | |