ouroboros-network-api
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Network.ConsensusMode

Synopsis

Documentation

data ConsensusMode Source #

Diffusion layer configuration parameter.

The two modes determine which PeerSelectionTargets basis is used by churn and OG. The node's configuration sets this, and diffusion is initiated and remains only in this mode.

Constructors

GenesisMode

When LedgerStateJudgement is TooOld, the targets basis is changed from default to one specific for this mode, which uses more big ledger peers until syncing is complete.

PraosMode

The legacy mode which depends on official relays and/or bootstrap peers configuration. This mode uses only the default target basis irrespective ledger state.

Instances

Instances details
FromJSON ConsensusMode Source # 
Instance details

Defined in Ouroboros.Network.ConsensusMode

Generic ConsensusMode Source # 
Instance details

Defined in Ouroboros.Network.ConsensusMode

Associated Types

type Rep ConsensusMode 
Instance details

Defined in Ouroboros.Network.ConsensusMode

type Rep ConsensusMode = D1 ('MetaData "ConsensusMode" "Ouroboros.Network.ConsensusMode" "ouroboros-network-api-0.11.0.0-inplace" 'False) (C1 ('MetaCons "GenesisMode" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PraosMode" 'PrefixI 'False) (U1 :: Type -> Type))
Show ConsensusMode Source # 
Instance details

Defined in Ouroboros.Network.ConsensusMode

Eq ConsensusMode Source # 
Instance details

Defined in Ouroboros.Network.ConsensusMode

type Rep ConsensusMode Source # 
Instance details

Defined in Ouroboros.Network.ConsensusMode

type Rep ConsensusMode = D1 ('MetaData "ConsensusMode" "Ouroboros.Network.ConsensusMode" "ouroboros-network-api-0.11.0.0-inplace" 'False) (C1 ('MetaCons "GenesisMode" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PraosMode" 'PrefixI 'False) (U1 :: Type -> Type))