cardano-node-8.7.2: The cardano full node
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Node.Startup

Synopsis

Documentation

data StartupTrace blk Source #

Constructors

StartupInfo

Log startup information.

Fields

  • [SocketOrSocketInfo SockAddr SockAddr]

    node-to-node addresses

  • (Maybe (SocketOrSocketInfo LocalSocket LocalAddress))

    node-to-client socket path

  • (Map NodeToNodeVersion (BlockNodeToNodeVersion blk))

    supported node-to-node versions

  • (Map NodeToClientVersion (BlockNodeToClientVersion blk))

    supported node-to-client versions

StartupP2PInfo DiffusionMode

Log peer-to-peer diffusion mode

StartupTime UTCTime 
StartupNetworkMagic NetworkMagic 
StartupSocketConfigError SocketConfigError 
StartupDBValidation 
BlockForgingUpdate EnabledBlockForging

Log that the block forging is being updated

BlockForgingUpdateError ProtocolInstantiationError

Protocol instantiation error when updating block forging

BlockForgingBlockTypeMismatch

Mismatched block type

Fields

  • SomeBlockType

    expected

  • SomeBlockType

    provided

NetworkConfigUpdate

Log that the network configuration is being updated.

NetworkConfigUpdateUnsupported

Re-configuration of network config is not supported.

NetworkConfigUpdateError Text

Log network configuration update error.

NetworkConfigLegacy

Legacy topology file format is used.

NetworkConfig [(HotValency, WarmValency, Map RelayAccessPoint PeerAdvertise)] (Map RelayAccessPoint PeerAdvertise) UseLedgerAfter

Log peer-to-peer network configuration, either on startup or when its updated.

P2PWarning

Warn when EnableP2P is set.

PeerSharingWarning

Warn when EnableP2P is set.

WarningDevelopmentNodeToNodeVersions [NodeToNodeVersion]

Warn when ExperimentalProtocolsEnabled is set and affects node-to-node protocol.

WarningDevelopmentNodeToClientVersions [NodeToClientVersion]

Warn when ExperimentalProtocolsEnabled is set and affects node-to-client protocol.

BICommon BasicInfoCommon 
BIShelley BasicInfoShelleyBased 
BIByron BasicInfoByron 
BINetwork BasicInfoNetwork 

Instances

Instances details
(Show (BlockNodeToNodeVersion blk), Show (BlockNodeToClientVersion blk), ToJSON (BlockNodeToNodeVersion blk), ToJSON (BlockNodeToClientVersion blk)) => Transformable Text IO (StartupTrace blk) Source # 
Instance details

Defined in Cardano.Tracing.Startup

HasPrivacyAnnotation (StartupTrace blk) Source # 
Instance details

Defined in Cardano.Tracing.Startup

HasSeverityAnnotation (StartupTrace blk) Source # 
Instance details

Defined in Cardano.Tracing.Startup

HasTextFormatter (StartupTrace blk) Source # 
Instance details

Defined in Cardano.Tracing.Startup

Methods

formatText :: StartupTrace blk -> Object -> Text #

(Show (BlockNodeToNodeVersion blk), Show (BlockNodeToClientVersion blk), ToJSON (BlockNodeToNodeVersion blk), ToJSON (BlockNodeToClientVersion blk)) => ToObject (StartupTrace blk) Source # 
Instance details

Defined in Cardano.Tracing.Startup

Methods

toObject :: TracingVerbosity -> StartupTrace blk -> Object #

textTransformer :: StartupTrace blk -> Object -> Text #

(Show (BlockNodeToNodeVersion blk), Show (BlockNodeToClientVersion blk), ToJSON (BlockNodeToNodeVersion blk), ToJSON (BlockNodeToClientVersion blk)) => LogFormatting (StartupTrace blk) 
Instance details

Defined in Cardano.Node.Tracing.Tracers.Startup

Methods

forMachine :: DetailLevel -> StartupTrace blk -> Object

forHuman :: StartupTrace blk -> Text

asMetrics :: StartupTrace blk -> [Metric]

MetaTrace (StartupTrace blk) 
Instance details

Defined in Cardano.Node.Tracing.Tracers.Startup

Methods

namespaceFor :: StartupTrace blk -> Namespace (StartupTrace blk)

severityFor :: Namespace (StartupTrace blk) -> Maybe (StartupTrace blk) -> Maybe SeverityS

privacyFor :: Namespace (StartupTrace blk) -> Maybe (StartupTrace blk) -> Maybe Privacy

detailsFor :: Namespace (StartupTrace blk) -> Maybe (StartupTrace blk) -> Maybe DetailLevel

documentFor :: Namespace (StartupTrace blk) -> Maybe Text

metricsDocFor :: Namespace (StartupTrace blk) -> [(Text, Text)]

allNamespaces :: [Namespace (StartupTrace blk)]

data EnabledBlockForging Source #

Constructors

EnabledBlockForging 
DisabledBlockForging 
NotEffective

one needs to send SIGHUP after consensus initialised itself (especially after replying all blocks).

data BasicInfoCommon Source #

Constructors

BasicInfoCommon 

Fields

data BasicInfoByron Source #

Constructors

BasicInfoByron 

Fields

data BasicInfoNetwork Source #

Constructors

BasicInfoNetwork 

Fields

data NodeInfo Source #

Constructors

NodeInfo 

Fields

Instances

Instances details
FromJSON NodeInfo Source # 
Instance details

Defined in Cardano.Node.Startup

Methods

parseJSON :: Value -> Parser NodeInfo

parseJSONList :: Value -> Parser [NodeInfo]

omittedField :: Maybe NodeInfo

ToJSON NodeInfo Source # 
Instance details

Defined in Cardano.Node.Startup

Methods

toJSON :: NodeInfo -> Value #

toEncoding :: NodeInfo -> Encoding

toJSONList :: [NodeInfo] -> Value

toEncodingList :: [NodeInfo] -> Encoding

omitField :: NodeInfo -> Bool

Generic NodeInfo Source # 
Instance details

Defined in Cardano.Node.Startup

Associated Types

type Rep NodeInfo :: Type -> Type Source #

Show NodeInfo Source # 
Instance details

Defined in Cardano.Node.Startup

NFData NodeInfo Source # 
Instance details

Defined in Cardano.Node.Startup

Methods

rnf :: NodeInfo -> () Source #

Eq NodeInfo Source # 
Instance details

Defined in Cardano.Node.Startup

MetaTrace NodeInfo Source # 
Instance details

Defined in Cardano.Node.Startup

Methods

namespaceFor :: NodeInfo -> Namespace NodeInfo

severityFor :: Namespace NodeInfo -> Maybe NodeInfo -> Maybe SeverityS

privacyFor :: Namespace NodeInfo -> Maybe NodeInfo -> Maybe Privacy

detailsFor :: Namespace NodeInfo -> Maybe NodeInfo -> Maybe DetailLevel

documentFor :: Namespace NodeInfo -> Maybe Text

metricsDocFor :: Namespace NodeInfo -> [(Text, Text)]

allNamespaces :: [Namespace NodeInfo]

type Rep NodeInfo Source # 
Instance details

Defined in Cardano.Node.Startup

type Rep NodeInfo = D1 ('MetaData "NodeInfo" "Cardano.Node.Startup" "cardano-node-8.7.2-J48sTm7zM1ILYN8ovLbDl2" 'False) (C1 ('MetaCons "NodeInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "niName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "niProtocol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "niVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "niCommit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "niStartTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "niSystemStartTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime)))))

prepareNodeInfo :: NodeConfiguration -> SomeConsensusProtocol -> TraceConfig -> UTCTime -> IO NodeInfo Source #

Prepare basic info about the node. This info will be sent to 'cardano-tracer'.

data NodeStartupInfo Source #

This information is taken from BasicInfoShelleyBased. It is required for 'cardano-tracer' service (particularly, for RTView).

Constructors

NodeStartupInfo 

Fields

Instances

Instances details
FromJSON NodeStartupInfo Source # 
Instance details

Defined in Cardano.Node.Startup

ToJSON NodeStartupInfo Source # 
Instance details

Defined in Cardano.Node.Startup

Generic NodeStartupInfo Source # 
Instance details

Defined in Cardano.Node.Startup

Associated Types

type Rep NodeStartupInfo :: Type -> Type Source #

Show NodeStartupInfo Source # 
Instance details

Defined in Cardano.Node.Startup

NFData NodeStartupInfo Source # 
Instance details

Defined in Cardano.Node.Startup

Methods

rnf :: NodeStartupInfo -> () Source #

Eq NodeStartupInfo Source # 
Instance details

Defined in Cardano.Node.Startup

MetaTrace NodeStartupInfo Source # 
Instance details

Defined in Cardano.Node.Startup

Methods

namespaceFor :: NodeStartupInfo -> Namespace NodeStartupInfo

severityFor :: Namespace NodeStartupInfo -> Maybe NodeStartupInfo -> Maybe SeverityS

privacyFor :: Namespace NodeStartupInfo -> Maybe NodeStartupInfo -> Maybe Privacy

detailsFor :: Namespace NodeStartupInfo -> Maybe NodeStartupInfo -> Maybe DetailLevel

documentFor :: Namespace NodeStartupInfo -> Maybe Text

metricsDocFor :: Namespace NodeStartupInfo -> [(Text, Text)]

allNamespaces :: [Namespace NodeStartupInfo]

type Rep NodeStartupInfo Source # 
Instance details

Defined in Cardano.Node.Startup

type Rep NodeStartupInfo = D1 ('MetaData "NodeStartupInfo" "Cardano.Node.Startup" "cardano-node-8.7.2-J48sTm7zM1ILYN8ovLbDl2" 'False) (C1 ('MetaCons "NodeStartupInfo" 'PrefixI 'True) ((S1 ('MetaSel ('Just "suiEra") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "suiSlotLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NominalDiffTime)) :*: (S1 ('MetaSel ('Just "suiEpochLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64) :*: S1 ('MetaSel ('Just "suiSlotsPerKESPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64))))