ouroboros-network-api
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.NodeToClient.Version

Synopsis

Documentation

data NodeToClientVersion Source #

Enumeration of node to client protocol versions.

Constructors

NodeToClientV_16

NodeToClientV_10 -- ^ added GetChainBlockNo and GetChainPoint queries | NodeToClientV_11 -- ^ added GetRewardInfoPools Block query | NodeToClientV_12 -- ^ added LocalTxMonitor mini-protocol | NodeToClientV_13 -- ^ enabled CardanoNodeToClientVersion9, i.e., Babbage | NodeToClientV_14 -- ^ added GetPoolDistr, GetPoolState, GetSnapshots | NodeToClientV_15 -- ^ added query to NodeToClientVersionData

NodeToClientV_17

added GetProposals and GetRatifyState queries

NodeToClientV_18

added GetFuturePParams query

NodeToClientV_19

added GetLedgerPeerSnapshot

Instances

Instances details
NFData NodeToClientVersion Source # 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

Methods

rnf :: NodeToClientVersion -> () #

Bounded NodeToClientVersion Source # 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

Enum NodeToClientVersion Source # 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

Generic NodeToClientVersion Source # 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

Associated Types

type Rep NodeToClientVersion 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

type Rep NodeToClientVersion = D1 ('MetaData "NodeToClientVersion" "Ouroboros.Network.NodeToClient.Version" "ouroboros-network-api-0.11.0.0-inplace" 'False) ((C1 ('MetaCons "NodeToClientV_16" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeToClientV_17" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NodeToClientV_18" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeToClientV_19" 'PrefixI 'False) (U1 :: Type -> Type)))
Show NodeToClientVersion Source # 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

Eq NodeToClientVersion Source # 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

Ord NodeToClientVersion Source # 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

type Rep NodeToClientVersion Source # 
Instance details

Defined in Ouroboros.Network.NodeToClient.Version

type Rep NodeToClientVersion = D1 ('MetaData "NodeToClientVersion" "Ouroboros.Network.NodeToClient.Version" "ouroboros-network-api-0.11.0.0-inplace" 'False) ((C1 ('MetaCons "NodeToClientV_16" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeToClientV_17" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "NodeToClientV_18" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NodeToClientV_19" 'PrefixI 'False) (U1 :: Type -> Type)))

nodeToClientVersionCodec :: CodecCBORTerm (Text, Maybe Int) NodeToClientVersion Source #

We set 16ths bit to distinguish NodeToNodeVersion and NodeToClientVersion. This way connecting wrong protocol suite will fail during Handshake negotiation

This is done in backward compatible way, so NodeToClientV_1 encoding is not changed.