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

Cardano.Node.Types

Synopsis

Configuration

class AdjustFilePaths a where Source #

Methods

adjustFilePaths :: (FilePath -> FilePath) -> a -> a Source #

Instances

Instances details
AdjustFilePaths PartialNodeConfiguration Source # 
Instance details

Defined in Cardano.Node.Configuration.POM

AdjustFilePaths SocketConfig Source # 
Instance details

Defined in Cardano.Node.Types

AdjustFilePaths GenesisFile Source # 
Instance details

Defined in Cardano.Node.Types

AdjustFilePaths NodeAlonzoProtocolConfiguration Source # 
Instance details

Defined in Cardano.Node.Types

AdjustFilePaths NodeByronProtocolConfiguration Source # 
Instance details

Defined in Cardano.Node.Types

AdjustFilePaths NodeConwayProtocolConfiguration Source # 
Instance details

Defined in Cardano.Node.Types

AdjustFilePaths NodeProtocolConfiguration Source # 
Instance details

Defined in Cardano.Node.Types

AdjustFilePaths NodeShelleyProtocolConfiguration Source # 
Instance details

Defined in Cardano.Node.Types

AdjustFilePaths a => AdjustFilePaths (Last a) Source # 
Instance details

Defined in Cardano.Node.Types

Methods

adjustFilePaths :: (FilePath -> FilePath) -> Last a -> Last a Source #

AdjustFilePaths a => AdjustFilePaths (Maybe a) Source # 
Instance details

Defined in Cardano.Node.Types

newtype ConfigYamlFilePath Source #

Filepath of the configuration yaml file. This file determines all the configuration settings required for the cardano node (logging, tracing, protocol, slot length etc)

Constructors

ConfigYamlFilePath 

newtype DbFile Source #

Constructors

DbFile 

Fields

Instances

Instances details
Show DbFile Source # 
Instance details

Defined in Cardano.Node.Types

Eq DbFile Source # 
Instance details

Defined in Cardano.Node.Types

newtype MaxConcurrencyBulkSync Source #

newtype MaxConcurrencyDeadline Source #

Networking

newtype UseLedger Source #

A newtype wrapper around UseLedgerAfter which provides FromJSON and ToJSON instances.

UseLedgerAfter is used to configure from which slot a p2p node can use on chain root peers.

Instances

Instances details
FromJSON UseLedger Source # 
Instance details

Defined in Cardano.Node.Types

ToJSON UseLedger Source # 
Instance details

Defined in Cardano.Node.Types

Show UseLedger Source # 
Instance details

Defined in Cardano.Node.Types

Eq UseLedger Source # 
Instance details

Defined in Cardano.Node.Types

newtype TopologyFile Source #

Constructors

TopologyFile 

Fields

Instances

Instances details
Show TopologyFile Source # 
Instance details

Defined in Cardano.Node.Types

Eq TopologyFile Source # 
Instance details

Defined in Cardano.Node.Types

Consensus protocol configuration

data NodeByronProtocolConfiguration Source #

Constructors

NodeByronProtocolConfiguration 

Fields

data NodeHardForkProtocolConfiguration Source #

Configuration relating to a hard forks themselves, not the specific eras.

Constructors

NodeHardForkProtocolConfiguration 

Fields

  • npcExperimentalHardForksEnabled :: Bool

    During the development and integration of new eras we wish to be able to test the hard fork transition into the new era, but we do not wish to generally have the node advertise that it understands the new era. Avoiding advertising new development eras until they are ready makes it practical to include new not-yet-ready eras into the main release version of the node without the danger that operators on the mainnet will prematurely advertise that their nodes are capable of crossing the next hard fork.

    It should always remain at the default of false for nodes running on the mainnet.

    This flag should be set to true for nodes taking part in testnets for testing the new era.

  • npcTestShelleyHardForkAtEpoch :: Maybe EpochNo

    For testing purposes we support specifying that the hard fork happens at an exact epoch number (ie the first epoch of the new era).

    Obviously if this is used, all the nodes in the test cluster must be configured the same, or they will disagree.

  • npcTestShelleyHardForkAtVersion :: Maybe Word

    For testing purposes we support specifying that the hard fork happens at a given major protocol version. For example this can be used to cause the Shelley hard fork to occur at the transition from protocol version 0 to version 1 (rather than the default of from 1 to 2) which can make the test setup simpler.

    Obviously if this is used, all the nodes in the test cluster must be configured the same, or they will disagree.

  • npcTestAllegraHardForkAtEpoch :: Maybe EpochNo

    For testing purposes we support specifying that the hard fork happens at an exact epoch number (ie the first epoch of the new era).

    Obviously if this is used, all the nodes in the test cluster must be configured the same, or they will disagree.

  • npcTestAllegraHardForkAtVersion :: Maybe Word

    For testing purposes we support specifying that the hard fork happens at a given major protocol version.

    Obviously if this is used, all the nodes in the test cluster must be configured the same, or they will disagree.

  • npcTestMaryHardForkAtEpoch :: Maybe EpochNo

    For testing purposes we support specifying that the hard fork happens at an exact epoch number (ie the first epoch of the new era).

    Obviously if this is used, all the nodes in the test cluster must be configured the same, or they will disagree.

  • npcTestMaryHardForkAtVersion :: Maybe Word

    For testing purposes we support specifying that the hard fork happens at a given major protocol version.

    Obviously if this is used, all the nodes in the test cluster must be configured the same, or they will disagree.

  • npcTestAlonzoHardForkAtEpoch :: Maybe EpochNo

    For testing purposes we support specifying that the hard fork happens at an exact epoch number (ie the first epoch of the new era).

    Obviously if this is used, all the nodes in the test cluster must be configured the same, or they will disagree.

  • npcTestAlonzoHardForkAtVersion :: Maybe Word

    For testing purposes we support specifying that the hard fork happens at a given major protocol version.

    Obviously if this is used, all the nodes in the test cluster must be configured the same, or they will disagree.

  • npcTestBabbageHardForkAtEpoch :: Maybe EpochNo
     
  • npcTestBabbageHardForkAtVersion :: Maybe Word

    For testing purposes we support specifying that the hard fork happens at a given major protocol version.

    Obviously if this is used, all the nodes in the test cluster must be configured the same, or they will disagree.

  • npcTestConwayHardForkAtEpoch :: Maybe EpochNo
     
  • npcTestConwayHardForkAtVersion :: Maybe Word