ouroboros-network
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Network.PeerSelection.Types

Synopsis

Documentation

data PeerStatus Source #

Constructors

PeerCold

Peer is in true cold which means no connection to exists and the outbound governor is safe to promote it.

PeerCooling

Peer is in cold state but its connection still lingers. I.e. it is still in progress to be fully demoted.

Note: The `PeerCooling -> PeerCold` state transition is an `outbound-governor` reflection of the connection-manager's `TerminatingSt -> TerminatedSt` state transition (our version of tcp's TimeWait). It is only triggered in case of a clean connection shutdown, not in the case of errors.

PeerWarm 
PeerHot