ouroboros-consensus-0.21.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Consensus.NodeId

Contents

Synopsis

Node IDs

newtype CoreNodeId Source #

Core node ID

Constructors

CoreNodeId 

Fields

Instances

Instances details
Generic CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Associated Types

type Rep CoreNodeIdTypeType #

Show CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Eq CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Methods

(==)CoreNodeIdCoreNodeIdBool #

(/=)CoreNodeIdCoreNodeIdBool #

Ord CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Hashable CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

NoThunks CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Condense CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Serialise CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

type Rep CoreNodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

type Rep CoreNodeId = D1 ('MetaData "CoreNodeId" "Ouroboros.Consensus.NodeId" "ouroboros-consensus-0.21.0.0-inplace" 'True) (C1 ('MetaCons "CoreNodeId" 'PrefixI 'True) (S1 ('MetaSel ('Just "unCoreNodeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

data NodeId Source #

Constructors

CoreId !CoreNodeId 
RelayId !Word64 

Instances

Instances details
Generic NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Associated Types

type Rep NodeIdTypeType #

Methods

fromNodeIdRep NodeId x #

toRep NodeId x → NodeId #

Show NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Methods

showsPrecIntNodeIdShowS #

showNodeIdString #

showList ∷ [NodeId] → ShowS #

Eq NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Methods

(==)NodeIdNodeIdBool #

(/=)NodeIdNodeIdBool #

Ord NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Methods

compareNodeIdNodeIdOrdering #

(<)NodeIdNodeIdBool #

(<=)NodeIdNodeIdBool #

(>)NodeIdNodeIdBool #

(>=)NodeIdNodeIdBool #

maxNodeIdNodeIdNodeId #

minNodeIdNodeIdNodeId #

Hashable NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Methods

hashWithSaltIntNodeIdInt Source #

hashNodeIdInt Source #

NoThunks NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Condense NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

Methods

condenseNodeIdString Source #

ShowProxy NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

type Rep NodeId Source # 
Instance details

Defined in Ouroboros.Consensus.NodeId

type Rep NodeId = D1 ('MetaData "NodeId" "Ouroboros.Consensus.NodeId" "ouroboros-consensus-0.21.0.0-inplace" 'False) (C1 ('MetaCons "CoreId" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CoreNodeId)) :+: C1 ('MetaCons "RelayId" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)))