ouroboros-network-0.16.1.0: A networking layer for the Ouroboros blockchain protocol
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Network.ExitPolicy

Synopsis

Documentation

newtype RepromoteDelay Source #

After demoting a peer to Warm or Cold, we use a delay to re-promote it back.

Constructors

RepromoteDelay 

Instances

Instances details
Semigroup RepromoteDelay Source # 
Instance details

Defined in Ouroboros.Network.ExitPolicy

Num RepromoteDelay Source # 
Instance details

Defined in Ouroboros.Network.ExitPolicy

Fractional RepromoteDelay Source # 
Instance details

Defined in Ouroboros.Network.ExitPolicy

Show RepromoteDelay Source # 
Instance details

Defined in Ouroboros.Network.ExitPolicy

Eq RepromoteDelay Source # 
Instance details

Defined in Ouroboros.Network.ExitPolicy

Ord RepromoteDelay Source # 
Instance details

Defined in Ouroboros.Network.ExitPolicy

type ReconnectDelay = RepromoteDelay Source #

Deprecated: Use RepromoteDelay instead

Deprecated in `ouroboros-network-0.11.0.0`

data ExitPolicy a Source #

ReturnPolicy allows to compute reconnection delay from value return by a mini-protocol. If a mini-protocol returned with an error epErrorDelay is used.

Constructors

ExitPolicy 

Fields

stdExitPolicyReturnPolicy a → ExitPolicy a Source #

ExitPolicy with 10s error delay.

alwaysCleanReturnPolicy Source #

Arguments

RepromoteDelay

re-promote delay on error

ExitPolicy a