hydra-node-0.20.0: The Hydra node
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Node.ParameterMismatch

Description

Structured errors related to configuration mismatch.

When we start a Node we need to do sanity checks between what's provided as parameters to the node and what's persisted.

Synopsis

Documentation

data ParamMismatch Source #

Constructors

ContestationPeriodMismatch 

Fields

PartiesMismatch 

Fields

SavedNetworkPartiesInconsistent 

Fields

Instances

Instances details
Arbitrary ParamMismatch Source # 
Instance details

Defined in Hydra.Node.ParameterMismatch

FromJSON ParamMismatch Source # 
Instance details

Defined in Hydra.Node.ParameterMismatch

Methods

parseJSON :: Value -> Parser ParamMismatch

parseJSONList :: Value -> Parser [ParamMismatch]

omittedField :: Maybe ParamMismatch

ToJSON ParamMismatch Source # 
Instance details

Defined in Hydra.Node.ParameterMismatch

Generic ParamMismatch Source # 
Instance details

Defined in Hydra.Node.ParameterMismatch

Associated Types

type Rep ParamMismatch :: Type -> Type Source #

Show ParamMismatch Source # 
Instance details

Defined in Hydra.Node.ParameterMismatch

Eq ParamMismatch Source # 
Instance details

Defined in Hydra.Node.ParameterMismatch

type Rep ParamMismatch Source # 
Instance details

Defined in Hydra.Node.ParameterMismatch

type Rep ParamMismatch = D1 ('MetaData "ParamMismatch" "Hydra.Node.ParameterMismatch" "hydra-node-0.20.0-5pXAEiXeWsXH8K4KfwlMxW" 'False) (C1 ('MetaCons "ContestationPeriodMismatch" 'PrefixI 'True) (S1 ('MetaSel ('Just "loadedCp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ContestationPeriod) :*: S1 ('MetaSel ('Just "configuredCp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ContestationPeriod)) :+: (C1 ('MetaCons "PartiesMismatch" 'PrefixI 'True) (S1 ('MetaSel ('Just "loadedParties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Party]) :*: S1 ('MetaSel ('Just "configuredParties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Party])) :+: C1 ('MetaCons "SavedNetworkPartiesInconsistent" 'PrefixI 'True) (S1 ('MetaSel ('Just "numberOfParties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))))