cardano-node-1.33.0
Safe HaskellNone
LanguageHaskell2010

Cardano.Node.Configuration.TopologyP2P

Synopsis

Documentation

data LocalRootPeersGroup Source #

A local root peers group. Local roots are treated by the outbound governor in a special way. The node will make sure that a node has the requested number (valency) of connections to the local root peer group.

Constructors

LocalRootPeersGroup 

Fields

data RootConfig Source #

Each root peer consists of a list of access points and a shared PeerAdvertise field.

Constructors

RootConfig 

Fields

  • rootAccessPoints ∷ [RelayAccessPoint]

    a list of relay access points, each of which is either an ip address or domain name and a port number.

  • rootAdvertisePeerAdvertise

    advertise configures whether the root should be advertised through gossip.

Instances

Instances details
Eq RootConfig Source # 
Instance details

Defined in Cardano.Node.Configuration.TopologyP2P

Show RootConfig Source # 
Instance details

Defined in Cardano.Node.Configuration.TopologyP2P

ToJSON RootConfig Source # 
Instance details

Defined in Cardano.Node.Configuration.TopologyP2P

Methods

toJSONRootConfig → Value #

toEncodingRootConfig → Encoding #

toJSONList ∷ [RootConfig] → Value #

toEncodingList ∷ [RootConfig] → Encoding #

FromJSON RootConfig Source # 
Instance details

Defined in Cardano.Node.Configuration.TopologyP2P

Methods

parseJSON ∷ Value → Parser RootConfig #

parseJSONList ∷ Value → Parser [RootConfig] #

newtype NodeHostIPAddress Source #

Constructors

NodeHostIPAddress 

Fields

Instances

Instances details
Eq NodeHostIPAddress Source # 
Instance details

Defined in Cardano.Node.Configuration.NodeAddress

Ord NodeHostIPAddress Source # 
Instance details

Defined in Cardano.Node.Configuration.NodeAddress

Show NodeHostIPAddress Source # 
Instance details

Defined in Cardano.Node.Configuration.NodeAddress

ToJSON NodeHostIPAddress Source # 
Instance details

Defined in Cardano.Node.Configuration.NodeAddress

Methods

toJSONNodeHostIPAddress → Value #

toEncodingNodeHostIPAddress → Encoding #

toJSONList ∷ [NodeHostIPAddress] → Value #

toEncodingList ∷ [NodeHostIPAddress] → Encoding #

FromJSON NodeHostIPAddress Source # 
Instance details

Defined in Cardano.Node.Configuration.NodeAddress

Methods

parseJSON ∷ Value → Parser NodeHostIPAddress #

parseJSONList ∷ Value → Parser [NodeHostIPAddress] #

newtype NodeHostIPv4Address Source #

Constructors

NodeHostIPv4Address 

Fields

Instances

Instances details
Eq NodeHostIPv4Address Source # 
Instance details

Defined in Cardano.Node.Configuration.NodeAddress

Ord NodeHostIPv4Address Source # 
Instance details

Defined in Cardano.Node.Configuration.NodeAddress

Show NodeHostIPv4Address Source # 
Instance details

Defined in Cardano.Node.Configuration.NodeAddress

ToJSON NodeHostIPv4Address Source # 
Instance details

Defined in Cardano.Node.Configuration.NodeAddress

Methods

toJSONNodeHostIPv4Address → Value #

toEncodingNodeHostIPv4Address → Encoding #

toJSONList ∷ [NodeHostIPv4Address] → Value #

toEncodingList ∷ [NodeHostIPv4Address] → Encoding #

FromJSON NodeHostIPv4Address Source # 
Instance details

Defined in Cardano.Node.Configuration.NodeAddress

Methods

parseJSON ∷ Value → Parser NodeHostIPv4Address #

parseJSONList ∷ Value → Parser [NodeHostIPv4Address] #

newtype NodeHostIPv6Address Source #

Constructors

NodeHostIPv6Address 

Fields

Instances

Instances details
Eq NodeHostIPv6Address Source # 
Instance details

Defined in Cardano.Node.Configuration.NodeAddress

Ord NodeHostIPv6Address Source # 
Instance details

Defined in Cardano.Node.Configuration.NodeAddress

Show NodeHostIPv6Address Source # 
Instance details

Defined in Cardano.Node.Configuration.NodeAddress

ToJSON NodeHostIPv6Address Source # 
Instance details

Defined in Cardano.Node.Configuration.NodeAddress

Methods

toJSONNodeHostIPv6Address → Value #

toEncodingNodeHostIPv6Address → Encoding #

toJSONList ∷ [NodeHostIPv6Address] → Value #

toEncodingList ∷ [NodeHostIPv6Address] → Encoding #

FromJSON NodeHostIPv6Address Source # 
Instance details

Defined in Cardano.Node.Configuration.NodeAddress

Methods

parseJSON ∷ Value → Parser NodeHostIPv6Address #

parseJSONList ∷ Value → Parser [NodeHostIPv6Address] #

data NodeSetup Source #

Instances

Instances details
Eq NodeSetup Source # 
Instance details

Defined in Cardano.Node.Configuration.TopologyP2P

Show NodeSetup Source # 
Instance details

Defined in Cardano.Node.Configuration.TopologyP2P

ToJSON NodeSetup Source # 
Instance details

Defined in Cardano.Node.Configuration.TopologyP2P

Methods

toJSONNodeSetup → Value #

toEncodingNodeSetup → Encoding #

toJSONList ∷ [NodeSetup] → Value #

toEncodingList ∷ [NodeSetup] → Encoding #

FromJSON NodeSetup Source # 
Instance details

Defined in Cardano.Node.Configuration.TopologyP2P

Methods

parseJSON ∷ Value → Parser NodeSetup #

parseJSONList ∷ Value → Parser [NodeSetup] #

data PeerAdvertise #

Instances

Instances details
Eq PeerAdvertise 
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

Show PeerAdvertise 
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

Generic PeerAdvertise 
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

Associated Types

type Rep PeerAdvertiseTypeType Source #

ToJSON PeerAdvertise 
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

Methods

toJSONPeerAdvertise → Value #

toEncodingPeerAdvertise → Encoding #

toJSONList ∷ [PeerAdvertise] → Value #

toEncodingList ∷ [PeerAdvertise] → Encoding #

FromJSON PeerAdvertise 
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

Methods

parseJSON ∷ Value → Parser PeerAdvertise #

parseJSONList ∷ Value → Parser [PeerAdvertise] #

type Rep PeerAdvertise 
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

type Rep PeerAdvertise = D1 ('MetaData "PeerAdvertise" "Ouroboros.Network.PeerSelection.Types" "ouroboros-network-0.1.0.0-b4d43858c494a0187e6c87c5cc3381eb802714cf518aec2526adb8e4070fe1cd" 'False) (C1 ('MetaCons "DoAdvertisePeer" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "DoNotAdvertisePeer" 'PrefixI 'False) (U1TypeType))

newtype UseLedger Source #

A newtype wrapper around UseLedgerAfter which provides FromJSON and ToJSON instances.

UseLedgerAfter is used to configure from which slot a p2p node can use on chain root peers.

Constructors

UseLedger UseLedgerAfter 

Instances

Instances details
Eq UseLedger Source # 
Instance details

Defined in Cardano.Node.Configuration.TopologyP2P

Show UseLedger Source # 
Instance details

Defined in Cardano.Node.Configuration.TopologyP2P

ToJSON UseLedger Source # 
Instance details

Defined in Cardano.Node.Configuration.TopologyP2P

Methods

toJSONUseLedger → Value #

toEncodingUseLedger → Encoding #

toJSONList ∷ [UseLedger] → Value #

toEncodingList ∷ [UseLedger] → Encoding #

FromJSON UseLedger Source # 
Instance details

Defined in Cardano.Node.Configuration.TopologyP2P

Methods

parseJSON ∷ Value → Parser UseLedger #

parseJSONList ∷ Value → Parser [UseLedger] #

readTopologyFileNodeConfigurationIO (Either Text NetworkTopology) Source #

Read the NetworkTopology configuration from the specified file.

rootConfigToRelayAccessPointRootConfig → [(RelayAccessPoint, PeerAdvertise)] Source #

Transforms a RootConfig into a pair of RelayAccessPoint and its corresponding PeerAdvertise value.