Safe Haskell | None |
---|---|
Language | Haskell2010 |
Ouroboros.Network.PeerSelection.Types
Synopsis
- data PeerSource
- data PeerAdvertise
- data PeerStatus
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.
Constructors
PeerSourceLocalRoot | |
PeerSourcePublicRoot | |
PeerSourceGossip |
Instances
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.
Constructors
DoNotAdvertisePeer | |
DoAdvertisePeer |
Instances
data PeerStatus Source #
Instances
Eq PeerStatus Source # | |
Defined in Ouroboros.Network.PeerSelection.Types Methods (==) :: PeerStatus -> PeerStatus -> Bool Source # (/=) :: PeerStatus -> PeerStatus -> Bool Source # |
|
Ord PeerStatus Source # | |
Defined in Ouroboros.Network.PeerSelection.Types Methods compare :: PeerStatus -> PeerStatus -> Ordering Source # (<) :: PeerStatus -> PeerStatus -> Bool Source # (<=) :: PeerStatus -> PeerStatus -> Bool Source # (>) :: PeerStatus -> PeerStatus -> Bool Source # (>=) :: PeerStatus -> PeerStatus -> Bool Source # max :: PeerStatus -> PeerStatus -> PeerStatus Source # min :: PeerStatus -> PeerStatus -> PeerStatus Source # |
|
Show PeerStatus Source # | |
Defined in Ouroboros.Network.PeerSelection.Types |