ouroboros-network-0.1.0.1: A networking layer for the Ouroboros blockchain protocol
Safe Haskell None
Language Haskell2010

Ouroboros.Network.PeerSelection.Types

Synopsis

Documentation

data PeerSource Source #

Where did this peer come from? Policy functions can choose to treat peers differently depending on where we found them from.

data PeerAdvertise Source #

Should this peer be advertised to other peers asking for known peers? For certain peers specified by configuration it would be an appropriate policy to keep them private.

Instances

Instances details
Eq PeerAdvertise Source #
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

Ord PeerAdvertise Source #
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

Show PeerAdvertise Source #
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

Generic PeerAdvertise Source #
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

ToJSON PeerAdvertise Source #
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

FromJSON PeerAdvertise Source #
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

type Rep PeerAdvertise Source #
Instance details

Defined in Ouroboros.Network.PeerSelection.Types

type Rep PeerAdvertise = D1 (' MetaData "PeerAdvertise" "Ouroboros.Network.PeerSelection.Types" "ouroboros-network-0.1.0.1-2UgqzRSdBh49QYumtriFSI" ' False ) ( C1 (' MetaCons "DoNotAdvertisePeer" ' PrefixI ' False ) ( U1 :: Type -> Type ) :+: C1 (' MetaCons "DoAdvertisePeer" ' PrefixI ' False ) ( U1 :: Type -> Type ))