Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
-
class
(
Show
(
BlockNodeToNodeVersion
blk),
Show
(
BlockNodeToClientVersion
blk),
Eq
(
BlockNodeToNodeVersion
blk),
Eq
(
BlockNodeToClientVersion
blk)) =>
HasNetworkProtocolVersion
blk
where
- type BlockNodeToNodeVersion blk :: Type
- type BlockNodeToClientVersion blk :: Type
-
class
HasNetworkProtocolVersion
blk =>
SupportedNetworkProtocolVersion
blk
where
- supportedNodeToNodeVersions :: Proxy blk -> Map NodeToNodeVersion ( BlockNodeToNodeVersion blk)
- supportedNodeToClientVersions :: Proxy blk -> Map NodeToClientVersion ( BlockNodeToClientVersion blk)
- latestReleasedNodeVersion :: Proxy blk -> ( Maybe NodeToNodeVersion , Maybe NodeToClientVersion )
- latestReleasedNodeVersionDefault :: SupportedNetworkProtocolVersion blk => Proxy blk -> ( Maybe NodeToNodeVersion , Maybe NodeToClientVersion )
- data NodeToClientVersion
- data NodeToNodeVersion
Documentation
class ( Show ( BlockNodeToNodeVersion blk), Show ( BlockNodeToClientVersion blk), Eq ( BlockNodeToNodeVersion blk), Eq ( BlockNodeToClientVersion blk)) => HasNetworkProtocolVersion blk Source #
Protocol versioning
type BlockNodeToNodeVersion blk :: Type Source #
type BlockNodeToNodeVersion blk = ()
type BlockNodeToClientVersion blk :: Type Source #
type BlockNodeToClientVersion blk = ()
Instances
SerialiseHFC xs => HasNetworkProtocolVersion ( HardForkBlock xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.Serialisation.Common type BlockNodeToNodeVersion ( HardForkBlock xs) Source # type BlockNodeToClientVersion ( HardForkBlock xs) Source # |
class HasNetworkProtocolVersion blk => SupportedNetworkProtocolVersion blk where Source #
supportedNodeToNodeVersions :: Proxy blk -> Map NodeToNodeVersion ( BlockNodeToNodeVersion blk) Source #
Enumerate all supported node-to-node versions
supportedNodeToClientVersions :: Proxy blk -> Map NodeToClientVersion ( BlockNodeToClientVersion blk) Source #
Enumerate all supported node-to-client versions
latestReleasedNodeVersion :: Proxy blk -> ( Maybe NodeToNodeVersion , Maybe NodeToClientVersion ) Source #
The latest released version
This is the latest version intended for deployment.
latestReleasedNodeVersionDefault :: SupportedNetworkProtocolVersion blk => Proxy blk -> ( Maybe NodeToNodeVersion , Maybe NodeToClientVersion ) Source #
A default for
latestReleasedNodeVersion
Chooses the greatest in
supportedNodeToNodeVersions
and
supportedNodeToClientVersions
.
Re-exports
data NodeToClientVersion Source #
Enumeration of node to client protocol versions.
NodeToClientV_9 |
enabled
|
NodeToClientV_10 |
added
|
NodeToClientV_11 |
added
|
NodeToClientV_12 |
added
|
NodeToClientV_13 |
enabled
|
Instances
data NodeToNodeVersion Source #
Enumeration of node to node protocol versions.
NodeToNodeV_7 |
Changes:
|
NodeToNodeV_8 |
Changes:
|
NodeToNodeV_9 |
Changes:
|
NodeToNodeV_10 |
Changes:
|