Safe Haskell | Safe-Inferred |
---|---|
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
- 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
IMPORTANT Note that this is entirely independent of the
shelleyProtVer
field et al.
Its primary purpose is to control the details of on-the-wire codecs. And
additionally which queries are allowed, in the case of
BlockNodeToClienVersion
(this use is already handled by
shelleyProtVer
in the NTN case).
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.
IMPORTANT Note that this is entirely independent of the
shelleyProtVer
field et al.
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 |
NodeToClientV_14 | added |
NodeToClientV_15 | added |
NodeToClientV_16 | added |
NodeToClientV_17 | added |
NodeToClientV_18 | added |
NodeToClientV_19 | added |
Instances
data NodeToNodeVersion Source #
Enumeration of node to node protocol versions.
NodeToNodeV_13 | NodeToNodeV_8
-- ^ Changes:
--
-- * Enable block diffusion pipelining in ChainSync and BlockFetch logic.
| NodeToNodeV_9
-- ^ Changes:
--
-- * Enable |
NodeToNodeV_14 | Chang+1 HF |